Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix build --dry-run --json $pathToDrv: empty output #4747

Closed
picnoir opened this issue Apr 27, 2021 · 0 comments · Fixed by #4750
Closed

nix build --dry-run --json $pathToDrv: empty output #4747

picnoir opened this issue Apr 27, 2021 · 0 comments · Fixed by #4750

Comments

@picnoir
Copy link
Member

picnoir commented Apr 27, 2021

Describe the bug

nix build --dry-run --json is not returning any output. Instead, it'd be super convenient to have a set containing two lists:

  1. one containing all the drvs nix is planning to build.
  2. another one containing all the paths nix is planning to substitute

Steps To Reproduce

» nix build --dry-run --json /nix/store/rnd34f5qzapr5x9wfcikjymc9nhp34jk-default-Setup.drv 2>/dev/null

<nothing in stdout>

Expected behavior

EDIT: disregard the proposed json output. Let's just have something consistent with nix-build --json (ie. without dry-run).

`nix --version

nix --version 
nix (Nix) 2.4pre20210326_dd77f71
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 a pull request may close this issue.

2 participants