-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed as not planned
Labels
Description
Describe the bug
~/test
❯ cat shell.nix
throw "i'm shell.nix"
~/test
❯ cat default.nix
throw "i'm default.nix"
~/test
❯ nix shell nixpkgs#nixVersions.nix_2_24 --command nix-shell . --attr hello
error:
… while calling the 'throw' builtin
at /home/k900/test/shell.nix:1:1:
1| throw "i'm shell.nix"
| ^
2|
error: i'm shell.nix
~/test
❯ nix shell nixpkgs#nixVersions.nix_2_18 --command nix-shell . --attr hello
error:
… while calling the 'throw' builtin
at /home/k900/test/default.nix:1:1:
1| throw "i'm default.nix"
| ^
2|
error: i'm default.nix
This also breaks a common pattern of nix-shell path/to/nixpkgs -A foo.
Steps To Reproduce
- Get a nixpkgs checkout
nix-shell . -A hello- See error
Expected behavior
A shell.
nix-env --version output
nix-env (Nix) 2.24.9
Additional context
2.18 is not affected, neither is Lix, may bisect later.
Priorities
Add 👍 to issues you find important.
Reactions are currently unavailable