Skip to content

fix(apply): suppress gc root warning from legacy build commands#184

Merged
water-sucks merged 1 commit intonix-community:mainfrom
Sporif:apply-fix-gc-root-warning
Feb 22, 2026
Merged

fix(apply): suppress gc root warning from legacy build commands#184
water-sucks merged 1 commit intonix-community:mainfrom
Sporif:apply-fix-gc-root-warning

Conversation

@Sporif
Copy link
Copy Markdown
Collaborator

@Sporif Sporif commented Feb 21, 2026

Both nix-store and nix-instantiate display a warning when --add-root is not passed. Suppress it by passing --no-gc-warning.

Initially, I only added the flag when opts.ResultLocation was unset, but adding the flag at the end results in a weird error from nix-store. So I simply added it unconditionally, as it still works when --add-root is also specified (it just doesn't do anything).

Both nix-store and nix-instantiate display a warning when `--add-root`
is not passed. Suppress it by passing `--no-gc-warning`.
@water-sucks water-sucks merged commit 489f459 into nix-community:main Feb 22, 2026
2 checks passed
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.

2 participants