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 profile remove regression, cannot distinguish packages with the same name #12380

Open
elikoga opened this issue Jan 29, 2025 · 1 comment

Comments

@elikoga
Copy link
Contributor

elikoga commented Jan 29, 2025

It is currently difficult for me to rebase cleanly #8956 due to a line like

nix profile remove --regex ".*foo-0.1" 2>&1 | grep 'removed 1 packages'

being impossible to write, due to packages of the same name not being distinguishable by the nix profile remove API, without explicitly handling the entire storepath with hash.

Maybe the nix profile remove --regex flag should search on the storepath? Maybe a new --regex-storepath flag?

@elikoga
Copy link
Contributor Author

elikoga commented Jan 29, 2025

I see #10166 reasoning is fine: "Question is: should we also regex-match on store paths? I think this can lead to unintended matching of hashes. So, probably not."

This is an argument for a new flag --regex-storepath for me

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

No branches or pull requests

1 participant