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

First CTRL-C as graceful stop #10559

Open
thomaslepoix opened this issue Apr 18, 2024 · 0 comments
Open

First CTRL-C as graceful stop #10559

thomaslepoix opened this issue Apr 18, 2024 · 0 comments
Labels
cli The old and/or new command line interface feature Feature request or proposal scheduling

Comments

@thomaslepoix
Copy link

Is your feature request related to a problem? Please describe.

I remember a small quality of life feature that I miss from Yocto/Bitbake for interrupting a build.

Describe the solution you'd like

The first CTRL-C received will trigger a graceful stop which means no more derivation build will begin, but the in progress ones will complete before stopping the process.

Only the second CTRL-C received will force a shutdown (current Nix behavior).

Describe alternatives you've considered

Additional context

This is nice to have in context of cross compilation or tweaking with build flags, where there is no binary cache anymore and building a whole system can take several hours, with some huge derivations inside.
It is worth to complete a 75%-built LLVM before pausing the build, for example.

Priorities

Add 👍 to issues you find important.

@thomaslepoix thomaslepoix added the feature Feature request or proposal label Apr 18, 2024
@roberth roberth added cli The old and/or new command line interface scheduling labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli The old and/or new command line interface feature Feature request or proposal scheduling
Projects
Status: To triage
Development

No branches or pull requests

2 participants