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

Support '-j', '-k' and '-K' in the 'nix' command? #2105

Open
bgamari opened this issue Apr 24, 2018 · 5 comments
Open

Support '-j', '-k' and '-K' in the 'nix' command? #2105

bgamari opened this issue Apr 24, 2018 · 5 comments
Labels

Comments

@bgamari
Copy link
Contributor

bgamari commented Apr 24, 2018

I find that I often end up having to fall back to nix-build after using nix build as the latter lacks support for the --keep-going and --keep-failed flags.

These are useful flags, that should be supported in one form or another in nix build.

@bgamari bgamari changed the title -k and -K support in nix build --keep-going and --keep-failed support in nix build Apr 24, 2018
bgamari added a commit to bgamari/nix that referenced this issue Apr 24, 2018
@bhipple
Copy link
Contributor

bhipple commented Apr 28, 2018

On a similar note, it would also be nice to be able to pass -jN to nix build and nix run. Since it's a key-value option, it can be passed with the much more verbose --option max-jobs N, but -jN is more convenient and familiar. I haven't figure out if there's a way to pass -k to the nix2 commands and also often fall back to nix-build; this would be great to have!

@lheckemann
Copy link
Member

--keep-going works for me with nix build--keep-failed works too, although it doesn't print the path of the kept build directory.

@bhipple all standard options can be passed without --option as well now, e.g. --max-jobs 4, --no-require-sigs, --substituters ''. In addition to being shorter, this has the benefit of complaining if you make a typo.

@bhipple
Copy link
Contributor

bhipple commented Apr 29, 2018

Aha, those are both good to know, thanks @lheckemann! It looks like nix build understands --keep-going but not -k, and understands --max-jobs but not -j. So now instead of dropping to nix-build I can run nix build --keep-going --max-jobs N <cmd>.

@edolstra edolstra changed the title --keep-going and --keep-failed support in nix build Support '-j', '-k' and '-K' in the 'nix' command? May 7, 2018
@stale
Copy link

stale bot commented Mar 5, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Mar 5, 2021
@stale
Copy link

stale bot commented Apr 19, 2022

I closed this issue due to inactivity. → More info

@stale stale bot closed this as completed Apr 19, 2022
@thufschmitt thufschmitt reopened this Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants