Repository navigation
Record the package config and the namespaces of each configuration - #130
Merged
Merged
Conversation
…ach configuration Every configuration records pkgSet: the name of the package config whose set it runs on, read from the selection in force applied to the sets tagged with their names, and the name path of the configuration that made the selection. A configuration evaluated once for every system records the level alone. Every configuration also records namespaces, the attribute names of lib.caisson and lib.caisson-core of the lib it runs on, names only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Builds on nix-caisson/caisson-core#55, merged, which publishes
namePathOf. The locks pin caisson-core main at its merge commit,c2f690e.This is item 5 of what topside needs from the record. It feeds
topside pkgsetsandtopside namespace(design section 15).pkgSet(lib.caisson.integrations.pkgSetAccountOf): every configuration records{ name; level; }.nameis the package config whose set the selection in force returns. It is read from the selection applied to the available sets tagged with their names, so it is null where a selection builds its set in another way.levelis the name path of the configuration that made the selection: the configuration itself for its owndefaultPkgs, or the nearest configuration above that selected withdefaultPkgsorcaisson.forChildren.defaultPkgs. With no selection it recordsdefaultand a null level. A configuration evaluated once for every system, such as a structural configuration or a flake, records the level alone.namespaces(namespacesOf): every configuration records the attribute names of eachlib.caisson.<integration>and oflib.caisson-corefor the lib it runs on. Names only, so nothing is forced past the keys.Tests:
a configuration records the package config it runs on and who selected itcovers each channel of a selection: a structural configuration's owndefaultPkgs, a configuration beneath that selects again, a host'scaisson.forChildren.defaultPkgs, and a configuration with no selection, plus the namespaces. The fullnix flake checkpasses, VM tests included.🤖 Generated with Claude Code