Repository navigation
Record the names of the sources defaultEcosystemSrc selects - #54
Merged
Merged
Conversation
…selects The lib manifest gains defaultEcosystemSrcNames: for each ecosystem the tree's defaultEcosystemSrc returns a source for, the name of that source among the pinned sources, or null where the selection builds the value in another way. The names are read from the selection applied to a copy of the sources in which each source carries its name, so recording them forces no source the selection does not read. selectedSourceName gives the same reading for any selection, such as the ecosystemSrc of a configuration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The lib manifest gains
defaultEcosystemSrcNames. For each ecosystem the tree'sdefaultEcosystemSrcreturns a source for, it holds the name of that source among the pinned sources, or null where the selection builds the value in another way, such as a directory inside a source.The names are read from the selection applied to a copy of
sourcesin which each source carries its name (resolve/source-names.nix). So recording them forces no source the selection does not read, and every source is not fetched to compare it.caisson-core.selectedSourceNamegives the same reading for any selection; caisson uses it for theecosystemSrcof a configuration.This is the caisson-core half of the
ecosystemsrecord, nix-caisson/caisson#129, which names the source of each part of the stack an evaluation used.Tests:
lifecycleDefaultEcosystemSrcNamesNameTheSelection(a named source, a built value recording null, and an unread source that throws if forced) andresolveSelectedSourceName. All 131 tests andnix flake checkpass.🤖 Generated with Claude Code