Skip to content

DrvOutputSubstitutionGoal: Don't actually fetch any store objects #14648

Merged
Ericson2314 merged 2 commits intoNixOS:masterfrom
obsidiansystems:goal-division-of-labor
Dec 17, 2025
Merged

DrvOutputSubstitutionGoal: Don't actually fetch any store objects #14648
Ericson2314 merged 2 commits intoNixOS:masterfrom
obsidiansystems:goal-division-of-labor

Conversation

@Ericson2314
Copy link
Member

Motivation

We now have a nice separation of concerns: DrvOutputSubstitutionGoal is just for getting realisations, and PathSubstitutionGoal is just for fetching store objects.

The fetching of store objects that this used to do is now moved to the caller.

Context

depends on #14247


Add 👍 to pull requests you find important.

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

@github-actions github-actions bot added documentation with-tests Issues related to testing. PRs with tests have some priority store Issues and pull requests concerning the Nix store labels Nov 25, 2025
@Ericson2314 Ericson2314 force-pushed the goal-division-of-labor branch from 00460c3 to a1127e9 Compare December 4, 2025 15:23
@Ericson2314 Ericson2314 force-pushed the goal-division-of-labor branch 3 times, most recently from d318599 to 9610eaf Compare December 15, 2025 07:12
This progress on NixOS#11896. It introduces some issues temporarily which
will be fixed when NixOS#11928 is fixed.

The SQL tables are left in place because there is no point inducing a
migration now, when we will be immediately landing more changes after
this that also require schema changes. They will simply be ignored by in
this commit, and so all data will be preserved.
@Ericson2314 Ericson2314 force-pushed the goal-division-of-labor branch from 9610eaf to 8e6625d Compare December 17, 2025 01:15
We now have a nice separation of concerns: `DrvOutputSubstitutionGoal`
is *just* for getting realisations, and `PathSubstitutionGoal` is just
for fetching store objects.

The fetching of store objects that this used to do is now moved to the
caller.
@Ericson2314 Ericson2314 force-pushed the goal-division-of-labor branch from 8e6625d to 018d646 Compare December 17, 2025 01:19
Copy link
Contributor

@xokdvium xokdvium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second commit lgtm. The renaming churn is yet tbd

@dpulls
Copy link

dpulls bot commented Dec 17, 2025

🎉 All dependencies have been resolved !

@Ericson2314 Ericson2314 added this pull request to the merge queue Dec 17, 2025
Merged via the queue into NixOS:master with commit 2f09287 Dec 17, 2025
16 checks passed
@Ericson2314 Ericson2314 deleted the goal-division-of-labor branch December 17, 2025 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation 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.

2 participants