Skip to content

Conversation

@edolstra
Copy link
Member

@edolstra edolstra commented Jan 6, 2026

Motivation

Using real store paths can result in accidental runtime dependencies if the store path occurs in the input closure. (E.g. we had an example in the nix ps manpage causing a runtime dependency on gcc.) So let's just get rid of all of them. The script ./maintainers/invalidate-store-paths.sh can be run periodically to detect/fix them.

Cherry-picked from DeterminateSystems#306 and DeterminateSystems#307.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@edolstra edolstra requested a review from Ericson2314 as a code owner January 6, 2026 15:05
@github-actions github-actions bot added documentation new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority store Issues and pull requests concerning the Nix store labels Jan 6, 2026
@xokdvium
Copy link
Contributor

xokdvium commented Jan 6, 2026

Sounds good. It can also make the source unfetchable if we end up something that's also in the build closure.

Though maybe squash the later invalidation commits? Not sure it makes sense to keep those separate.

@edolstra edolstra force-pushed the remove-store-hashes branch from 2f02d9c to 05df7d7 Compare January 6, 2026 16:26
@edolstra edolstra enabled auto-merge January 6, 2026 16:26
@edolstra edolstra added this pull request to the merge queue Jan 6, 2026
Merged via the queue into master with commit 7a5f493 Jan 6, 2026
18 checks passed
@edolstra edolstra deleted the remove-store-hashes branch January 6, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants