nix-build silently failing and still returning exit code 0 #48
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/flake-compat#48
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?
Running
nix buildsuccessfully builds the artifacts and links them in the newly createdresults/bin. When I rannix-build --debug, I got the following output:which resulted in an exit code 0 but does not build / link any artifacts (I checked this multiple times). In the end the problem was that the README says to put the following into my
default.nixwhich references the rev of the
flake-compatobject in the lock file. However, because of previous dependencies, theflake-compatobject in the lock file refers to a fork offlake-compatfrom IOHKwhereas
flake-compat_11(and several other variants) did refer to a commit by @edolstra's repo. When I replacedflake-compatwith (for example)flake-compat_11, everything worked as intended.This actually seems like a nix bug but I figured I would put it here first. The reason being that the
resultdir was not created, there definitely was an error because I was trying to import some probably non-existent nix file, yet the process finishes with exit code 0.