[Nix#9782] How to recover from "some outputs are unexpectedly invalid" error? #66
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#66
Loading…
Add table
Add a link
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#9782
Problem
I ran into this error message. There are no relevant messages near to it, so I have no idea how to recover from it. Basically, the error message would have to answer all of the following to be useful:
Proposal
Checklist
Priorities
Add 👍 to issues you find important.
This can happen if you do (e.g.)nix build .#postgis --rebuild
and the derivation hasn't been built yet.--rebuild
instructs Nix to find the output and build it again, which it can't do when the output doesn't exist! We should just build the derivation, or at least fail with a sensible error message.EDIT: This is completely wrong, this is a separate error.
Oops, I didn't mean to close this. I hit tab the wrong amount of times.
nix build --rebuild
on an unbuilt derivation fails with "some outputs of '...' are not valid, so checking is not possible" #485