Navigation Menu

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

mention nix-store --query --roots when a path cannot be deleted #2338

Merged
merged 1 commit into from Sep 30, 2019

Conversation

bobvanderlinden
Copy link
Member

As a follow-up on the discussions on PR #2046, this PR will mention the usage of
nix-store --query --roots whenever nix-store cannot delete a path due to it
still being alive.

This was suggested by @edolstra, because it is not straightforward
whether a path is alive due to it being referred to by a GC root, it being a GC root or
it being referred to by GC in-memory.

@bobvanderlinden
Copy link
Member Author

This PR is still relevant. Could someone have a look? @NixOS/nix-core

@d-goldin
Copy link
Contributor

d-goldin commented Sep 7, 2019

I think this would be a pragmatic and useful quickfix, considering that #2046 has stalled. How could this PR be helped to get it merged?

@bobvanderlinden
Copy link
Member Author

Make it known to potential reviewers. Maybe mention it on irc/matrix? I don't want to come over as spammy with the mentions I used in this PR already.

throw Error(format("cannot delete path '%1%' since it is still alive") % i);
throw Error(format(
"cannot delete path '%1%' since it is still alive. "
"To find out why use: "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be

Suggested change
"To find out why use: "
"To find out why, use: "

@domenkozar domenkozar merged commit 2d2769f into NixOS:master Sep 30, 2019
@bobvanderlinden
Copy link
Member Author

Thank you!

@bobvanderlinden bobvanderlinden deleted the pr-cannot-delete-alive-why branch September 30, 2019 12:33
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 this pull request may close these issues.

None yet

4 participants