Skip to content

Split DerivationGoal in two #13181

Merged
Ericson2314 merged 2 commits intoNixOS:masterfrom
obsidiansystems:derivation-building-goal
May 21, 2025
Merged

Split DerivationGoal in two #13181
Ericson2314 merged 2 commits intoNixOS:masterfrom
obsidiansystems:derivation-building-goal

Conversation

@Ericson2314
Copy link
Member

@Ericson2314 Ericson2314 commented May 14, 2025

Motivation

This separation of concerns is generally good, but in particular sets up for removing addWantedOutputs next.

The one regression it introduces is "upgrading" to all wanted output when a CA derivation is resolved but then substituted. That is not good, but content-addressing derivations are unstable, so I rather not block this. I am happy to fix that later, once this is done.

Context


Add 👍 to pull requests you find important.

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

@Ericson2314 Ericson2314 requested a review from edolstra as a code owner May 14, 2025 05:12
@github-actions github-actions bot added documentation with-tests Issues related to testing. PRs with tests have some priority labels May 14, 2025
This was referenced May 14, 2025
@Ericson2314 Ericson2314 force-pushed the derivation-building-goal branch 2 times, most recently from a3b8b88 to c45bd9b Compare May 15, 2025 17:41
@ConnorBaker
Copy link
Contributor

Is there an issue/do you plan to create something for the content addressed derivation regression you mentioned so it doesn't get lost?

@Ericson2314
Copy link
Member Author

Yes once this is merged I would create an issue. I think the solution will fall out of the fix for #11928 (a separate, preexisitng issue), which is nice!

@dpulls
Copy link

dpulls bot commented May 20, 2025

🎉 All dependencies have been resolved !

Same technique as 6c2a7fd.
This separation of concerns is generally good, but in particular sets up
for removing `addWantedOutputs` next.
@Ericson2314 Ericson2314 force-pushed the derivation-building-goal branch from c45bd9b to 3b617e4 Compare May 20, 2025 15:57
@github-project-automation github-project-automation bot moved this to To triage in Nix team May 20, 2025
Copy link
Member

@roberth roberth left a comment

Choose a reason for hiding this comment

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

Conditional on aforementioned issue being opened

@Ericson2314
Copy link
Member Author

#13247 here is the issue.

@Ericson2314 Ericson2314 merged commit bf5d544 into NixOS:master May 21, 2025
12 checks passed
@Ericson2314 Ericson2314 deleted the derivation-building-goal branch May 21, 2025 20:44
@github-project-automation github-project-automation bot moved this from To triage to Done in Nix team May 21, 2025
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2025-05-21-nix-team-meeting-minutes-228/65204/1

@roberth roberth added the backports rejected PR should not be backported (or at least not in full, or unless an overriding need arises) label Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backports rejected PR should not be backported (or at least not in full, or unless an overriding need arises) documentation with-tests Issues related to testing. PRs with tests have some priority

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants