Nix, the purely functional package manager
58 matches across 10 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/functional/nix-channel.sh | 31 | # Create a channel. |
| MEDIUM | tests/functional/binary-cache.sh | 14 | # Create the binary cache. |
| MEDIUM | tests/functional/binary-cache.sh | 185 | # Create a signed binary cache. |
| MEDIUM | tests/functional/fetchGitShallow.sh | 8 | # Create a test repo with multiple commits for all our tests |
| MEDIUM | tests/functional/local-overlay-store/optimise-inner.sh | 19 | # Create a file to add to store |
| MEDIUM | tests/functional/flakes/common.sh | 52 | # Create a simple Git flake and add it to the registry as "flake1". |
| MEDIUM | tests/functional/flakes/run.sh | 59 | # Create a flake with an app that prints its arguments |
| MEDIUM | tests/functional/common/functions.sh | 256 | # This function is inefficient, so it should only be used in error messages. |
| MEDIUM | scripts/install-systemd-multi-user.sh | 49 | # Create a systemd unit override with proxy environment variables |
| MEDIUM | scripts/create-darwin-volume.sh | 259 | # Create the paths defined in synthetic.conf, saving us a reboot. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/nixos/ca-fd-leak/sender.c | 1 | #include <sys/socket.h> |
| LOW | tests/functional/shell.shebang.sh | 1 | #! @ENV_PROG@ nix-shell |
| LOW | tests/functional/shell.shebang.rb | 1 | #! @SHELL_PROG@ |
| LOW | tests/functional/fetchGitRefs.sh | 21 | # Test various combinations of ref names |
| LOW | tests/functional/fetchGitSubmodules.sh | 161 | |
| LOW | tests/functional/shell.sh | 21 | nix shell -f shell-hello.nix hello-symlink -c hello | grep 'Hello World' |
| LOW | tests/functional/nix_path.sh | 21 | # ideally they would work off the table programmatically. |
| LOW | tests/functional/nars.sh | 121 | expectStderr 1 nix-store "${opts[@]}" --dump "$TEST_ROOT/case" > /dev/null |
| LOW | tests/functional/fixed-slow-vs-bad.sh | 1 | #!/usr/bin/env bash |
| LOW | tests/functional/experimental-features.sh | 1 | #!/usr/bin/env bash |
| LOW | tests/functional/local-overlay-store/common.sh | 1 | # shellcheck shell=bash |
| LOW | tests/functional/flakes/follow-paths.sh | 181 | # A |
| LOW | tests/functional/flakes/follow-paths.sh | 281 | } |
| LOW | tests/functional/flakes/shebang.sh | 21 | chmod +x "$scriptDir/shebang.sh" |
| LOW | tests/functional/common/functions.sh | 301 | # |
| LOW | tests/functional/git/packed-refs-no-cache.sh | 1 | #!/usr/bin/env bash |
| LOW | scripts/install-darwin-multi-user.sh | 1 | #!/usr/bin/env bash |
| LOW | scripts/install-multi-user.sh | 661 | # now mounted, but we haven't added a bunch of new files |
| LOW | scripts/create-darwin-volume.sh | 1 | #!/usr/bin/env bash |
| LOW | scripts/create-darwin-volume.sh | 21 | # identifiers we inherit--just those necessary to: |
| LOW | scripts/create-darwin-volume.sh | 141 | fi |
| LOW | scripts/create-darwin-volume.sh | 161 | # the volume, and the install fails. |
| LOW | scripts/create-darwin-volume.sh | 441 | # shellcheck disable=SC1003,SC2026 |
| LOW | scripts/create-darwin-volume.sh | 461 | EOF |
| LOW | scripts/create-darwin-volume.sh | 481 | # I'm not sure if it's safe to approach this way? |
| LOW | scripts/create-darwin-volume.sh | 721 | # its UUID and set mount opts in fstab before first mount |
| LOW | doc/manual/generate-deps.py | 1 | #!/usr/bin/env python3 |
| LOW | src/libexpr-c/nix_api_expr.h | 21 | # define __has_c_attribute(x) 0 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/functional/flakes/flakes.sh | 116 | # This `cd` should not be required and is indicative of aforementioned bug. |
| MEDIUM | tests/functional/git/packed-refs-no-cache.sh | 5 | # tl;dr;fetchGit will utilize the git cache and avoid refetching when possible. |
| MEDIUM | scripts/create-darwin-volume.sh | 553 | # aspiration: robust enough to both fix problems |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | doc/manual/expand-includes.py | 192 | print(f"Error: Input file not found: {args.input_file}", file=sys.stderr) |
| MEDIUM | doc/manual/expand-includes.py | 196 | print(f"Error: Source root is not a directory: {args.source_root}", file=sys.stderr) |
| MEDIUM | doc/manual/expand-includes.py | 200 | print(f"Error: Generated root is not a directory: {args.generated_root}", file=sys.stderr) |
| LOW | doc/manual/expand-includes.py | 215 | except Exception as e: |
| MEDIUM | doc/manual/expand-includes.py | 216 | print(f"Error processing {args.input_file}: {e}", file=sys.stderr) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/filetransfer-retry-backoff/test_retry_backoff.py | 95 | def test_rate_limit_delay_and_retry_after(): |
| LOW | tests/filetransfer-retry-backoff/test_retry_backoff.py | 109 | def test_retry_after_floor_exceeds_backoff(): |
| LOW | tests/filetransfer-retry-backoff/test_retry_backoff.py | 133 | def test_raised_retry_attempts(): |
| LOW | tests/filetransfer-retry-backoff/test_retry_backoff.py | 145 | def test_download_attempts_alias(): |
| LOW | …anual/source/store/derivation/outputs/input-address.md | 69 | function hashOutputsOrQuotientDerivation(drv) -> Map[String, Hash] | Hash: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/libstore-c/nix_api_store.h | 111 | * @note Don't forget to free this path using nix_store_path_free()! |
| LOW | src/libstore-c/nix_api_store/store_path.h | 79 | * @note Don't forget to free this path using nix_store_path_free()! |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | contrib/stack-collapse.py | 12 | |
| LOW | contrib/stack-collapse.py | 13 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/functional/eval.sh | 26 | # Check if toFile can be utilized during restricted eval |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/functional/common/functions.sh | 215 | # Usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/functional/fetchGitSubmodules.sh | 28 | echo "lorem ipsum" > "$1"/content |