Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
nix-env: validate json outputsToInstall #3584
This isn't particularly useful since the json output already includes
If this flag is added to the ofborg evaluation checks it should catch problems like NixOS/nixpkgs#87138 in the future.
This means meta.outputsToInstall is now always available, even when not defined by the derivation (ie. all outputs). Also enforces it's value is valid, useful for tooing that evaluates nix expressions like ofborg. Similar logic is used by the channel update script https://github.com/NixOS/nixos-channel-scripts/blob/7a681103b2b3ce150f7f96394f19aa0ad4797ca1/generate-programs-index.cc#L1