[Nix#9700] Bad error message for nix build
of a string #74
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#74
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#9700
Describe the bug
Invoking
nix build
against a string containing a store path causes sadness: it does not build anything and returns an error seemingly nothing to do with the actual problem.Steps To Reproduce
Put this in a file:
nix build -f ./bug.nix
Expected behavior
I expected the error message to be less bad, for example, what
nix-build bug.nix
does:although I will note that that error is also terrible, but for different reasons: it doesn't do the thing you want. The case I had here is that I needed to
nix eval
some string, and then build the derivation from it. I took the store path in the string and gave it tonix build
, but it couldn't identify the derivation file necessary to build it.nix-env --version
outputAdditional context
This occurred in practice while trying to get something out of a NixOS config under
environment.etc.something.source
.Priorities
Add 👍 to issues you find important.