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

Proposal: nix flake update --exclude #10215

Open
gekoke opened this issue Mar 10, 2024 · 0 comments
Open

Proposal: nix flake update --exclude #10215

gekoke opened this issue Mar 10, 2024 · 0 comments
Labels
cli The old and/or new command line interface feature Feature request or proposal flakes

Comments

@gekoke
Copy link

gekoke commented Mar 10, 2024

Is your feature request related to a problem? Please describe.
I would find it very useful if there was a way to update all inputs to a flake, excepting some arbitrary subset.

Currently the only way to do that (AFAIK, correct me if I'm wrong?) is list the desired inputs to update explicitly (i.e. in nix flake update input1 input2 or nix flake lock --update-input input1 input2), or run nix flake update and try to discard the appropriate changes to the lockfile.

Describe the solution you'd like
An option in the CLI to run nix flake update foo bar baz --except baz, which would perform set subtraction from the variable argument list, resulting in the inputs foo, bar being updated. nix flake update --except foo would update all unpinned flake inputs except for foo.

Describe alternatives you've considered
None

@gekoke gekoke added the feature Feature request or proposal label Mar 10, 2024
@gekoke gekoke changed the title nix flake update --exclude Proposal: nix flake update --exclude Mar 10, 2024
@roberth roberth added flakes cli The old and/or new command line interface labels Mar 22, 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 flakes
Projects
None yet
Development

No branches or pull requests

2 participants