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-store --add doesn't update refrences properly #10608

Open
lolbinarycat opened this issue Apr 25, 2024 · 0 comments
Open

nix-store --add doesn't update refrences properly #10608

lolbinarycat opened this issue Apr 25, 2024 · 0 comments
Labels

Comments

@lolbinarycat
Copy link

Steps To Reproduce

$ mkdir /tmp/gcbug
$ ln -s $(realpath /bin/sh) /tmpgcbug/sh
$ nix-store -q --tree $(nix-store --add /tmp/gcbug)
/nix/store/zk2qklkcilxpsxf0xbsi65g0b02ywaj2-gcbug

Expected behavior

the closure of the added path should contain bash.

nix-env --version output
nix-env (Nix) 2.18.1

Additional context

this causes store paths to be garbage collected while still alive. this should not ever happen.

Priorities

Add 👍 to issues you find important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant