nix-shell -i
doesn't respect store
config value #565
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#565
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
nix-shell -i
takes an interpreter from/nix/store
hardcoded. When changing the store withstore
config value,-i
ignores it and tries to look at hardcoded/nix/store
. This leads to brokenness and failures.Discovered while working on tests for CL#2062
Steps To Reproduce
mktemp -d
andcd
into itshebang.sh
:chmod +x shebang.sh
mkdir -p nix/store
export NIX_CONFIG='store = /tmp/<tmpdir>
./shebang.sh
unset NIX_CONFIG
./shebang.sh
Expected behavior
With
NIX_CONFIG
set, the shebang should still succeed: interpreter should be taken from thestore
config value, not from/nix/store
.nix --version
outputnix (Lix, like Nix) 2.92.0-dev-pre20241020-068f4b1
Additional context
Platform is
x86_64-linux
,auto-optimise-store = true
is enabled.