Skip to content

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

Merged
domenkozar merged 1 commit into
NixOS:masterfrom
bobvanderlinden:pr-cannot-delete-alive-why
Sep 30, 2019
Merged

domenkozar merged 1 commit into
NixOS:masterfrom
bobvanderlinden:pr-cannot-delete-alive-why

Conversation

@bobvanderlinden

Copy link
Copy Markdown
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
Copy Markdown
Member Author

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

@d-goldin

d-goldin commented Sep 7, 2019

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

Comment thread src/libstore/gc.cc
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
Copy Markdown
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
Copy Markdown
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.

4 participants