nix build --rebuild
on an unbuilt derivation fails with "some outputs of '...' are not valid, so checking is not possible" #485
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#485
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
If you use
nix build --rebuild
ornix-build --check
on a derivation that has not been built locally yet, Nix will fail with an inscrutable error message that does not indicate you should remove the--rebuild
flag.Steps To Reproduce
With
unbuilt.nix
:Note that this derivation will fail to build, but for a different reason:
Expected behavior
Really it should just go ahead and build the derivation, but I would settle for it telling me to remove the
--rebuild
flag.nix --version
outputAdditional context
#66 looks very similar, but it's emitted from a different code path.
dupe #281, but your report is better, so im going to close the other one.
💭 i'm going to get a good grade in bug reports, something that's normal to want & possible to achieve