[Nix#9642] Nix fails to lock a GitHub flake reference if the repository does not include the flake.lock
file #80
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#80
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?
Upstream-Issue: NixOS/nix#9642
Describe the bug
If a GitHub flake reference has an input but doesn't come with a
flake.lock
file then the Nix command fails with:Steps To Reproduce
Expected behavior
I expect the command to succeed even if the repository's flake doesn't include a lock file.
nix-env --version
outputAdditional context
It appears that what's happening is that when Nix encounters the GitHub flake with a missing
flake.lock
file it attempts to lock it, but it can't because the GitHub repository is an immutable/nix/store/…-source
path by that point.This also seems a bit similar to:
https://github.com/NixOS/nix/issues/6050
… although that's not for a GitHub flake reference so it's not clear if it's the same problem or not.
Priorities
Add 👍 to issues you find important.