Skip to content

builtins.path: Propagate references from derivation outputs#14736

Merged
Mic92 merged 2 commits intomasterfrom
builtins-path-references
Dec 8, 2025
Merged

builtins.path: Propagate references from derivation outputs#14736
Mic92 merged 2 commits intomasterfrom
builtins-path-references

Conversation

@edolstra
Copy link
Member

@edolstra edolstra commented Dec 8, 2025

Motivation

This restores compatibility with Nix 2.18, which behaved this way. (This behaviour was first lost in ea38605.) Note that this doesn't scan for the actually visible references.

Unlike in Nix 2.18, we only do this for paths with context, i.e. it applies to builtins.storePath "/nix/store/bla..." but not "/nix/store/bla...". We don't want the latter because it shouldn't matter whether a source file happens to be in the Nix store.

Context


Add 👍 to pull requests you find important.

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

This restores compatibility with Nix 2.18, which behaved this
way. Note that this doesn't scan for the actually visible references.

Unlike in Nix 2.18, we only do this for paths with context, i.e. it
applies to `builtins.storePath "/nix/store/bla..."` but not
`"/nix/store/bla..."`. We don't want the latter because it shouldn't
matter whether a source file happens to be in the Nix store.
@edolstra edolstra added the regression Something doesn't work anymore label Dec 8, 2025
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Dec 8, 2025
@Mic92 Mic92 added this pull request to the merge queue Dec 8, 2025
Merged via the queue into master with commit 8ab5c2b Dec 8, 2025
21 checks passed
@Mic92 Mic92 deleted the builtins-path-references branch December 8, 2025 23:24
@edolstra edolstra mentioned this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

regression Something doesn't work anymore 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.

2 participants