Skip to content

Check nix-instantiate exit code in - #720

Open
bglgwyng wants to merge 1 commit into
NixOS:masterfrom
bglgwyng:fix/check-nix-instantiate-exit-code
Open

Check nix-instantiate exit code in#720
bglgwyng wants to merge 1 commit into
NixOS:masterfrom
bglgwyng:fix/check-nix-instantiate-exit-code

Conversation

@bglgwyng

Copy link
Copy Markdown

readNixpkgSet runs nix-instantiate --strict ... to obtain the package map for nixpkgs.

Previously, if nix-instantiate failed(for example, due to the absense of Nix CLI tools), the error was silently ignored, and the function returned an empty set.

This change checks the process exit code and reports failures properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant