Repository navigation
Conversation
ermo
force-pushed
the
task/unify-sync-resolver-logic
branch
5 times, most recently
from
November 25, 2026 08:16
5f30c37 to
6264417
Compare
The request module holds the HTTP/file download helpers. The idea with the rename is to free up the "request" module for other uses. Signed-off-by: Rune Morling <ermo@aerynos.com>
ermo
force-pushed
the
task/unify-sync-resolver-logic
branch
from
November 25, 2026 08:24
6264417 to
e51cd06
Compare
Rename download functions for what they produce (to_path, json ...), so they don't read download::download(...) Example: `download::download_with_progress` -> `download::to_path_with_progress` Signed-off-by: Rune Morling <ermo@aerynos.com>
Replace the overloaded term "explicit" and use "supplied" instead, in the context of moss repositories. After this refactor, "explicit" only refers to explicitly user selected packages. Signed-off-by: Rune Morling <ermo@aerynos.com>
ermo
force-pushed
the
task/unify-sync-resolver-logic
branch
2 times, most recently
from
November 27, 2026 16:29
61235df to
d539497
Compare
Repositories are now "enabled"/"disabled", not "active"/"inactive". Only states can be "active". Note that we allow "active" to be serialised in repository configurations as a backwards compatibility feature, though we really ought to at least warn the user about it for a period of time, before deprecating it fully. Signed-off-by: Rune Morling <ermo@aerynos.com>
This is a breaking CLI change, in the sense that the cached view of
enabled reposistory indices will now be "refreshed" instead of "updated".
Examples:
moss repo refresh [aliases: rrf] (was moss repo update)
moss sync -r|--refresh (was moss sync -u|--update)
Not only does this now deliberately match the underlying terms in the
code, it also leaves room for a `pkg update` primitive, which can now not
be confused with a `repo refresh` in the code or on the CLI.
Signed-off-by: Rune Morling <ermo@aerynos.com>
ermo
force-pushed
the
task/unify-sync-resolver-logic
branch
from
November 27, 2026 16:31
d539497 to
df22794
Compare
The idea is that "resolve" only means dependency resolution. Signed-off-by: Rune Morling <ermo@aerynos.com>
ermo
force-pushed
the
task/unify-sync-resolver-logic
branch
2 times, most recently
from
November 28, 2026 19:02
0fb36c7 to
a1bcfa6
Compare
SystemModel is now pure data, and consists of the set of known repositories (enabled or disabled) and the set of explicit providers / packages. Document holds a system-model with its KDL encoding and associated edits. Specifically, it keeps formatting for declared models that the user has carefully edited themselves. Declared is the system-model the user declares at `/etc/moss/system-model.kdl` or imports with `moss sync --import <some valid system-model.kdl>`. Declared system-models will only ever be read by moss, never written. Recorded is the system-model a fstree was built from. The recoded system-model is stored within the fstree at `/usr/.system-model.kdl`. It will be read from the old location (/usr/lib/system-model.kdl) when needed. Base is the system-model a change starts from: Recorded or Declared. Drift is the difference between two system-models. This commit also contains a bunch of refactors to match up with the new system-model data structures and API. Signed-off-by: Rune Morling <ermo@aerynos.com>
ermo
force-pushed
the
task/unify-sync-resolver-logic
branch
from
November 29, 2026 06:32
a1bcfa6 to
38328c2
Compare
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 idea is to streamline the resolver logic in moss around a set of nicely composable primitives, along with fixing up the terminology (with attendant necessary CLI changes), and ensuring that any "unintended features" in the current resolver code are corrected.
A
moss pkg updateprimitive is being added to make it easier for people using a declarative/etc/moss/system-model.kdlto update non-sync'd packages they are testing out or don't want to add to their declared models, and to make it simpler for developers and packagers working on stacks to update their system state to reflect the latest local/development repository stack update versions (based on experience with the papercuts that currently exist when attempting to do this).That this work also made it possible to re-define the
syncoperation as a compound operation consisting of the pkg update operation plus a few other things, was an unintended but nice side-effect.The CLI changes will look something like this:
moss pkg updateprimitive is introduced, which requires an argument:moss pkg update <one-or-more-packages> [Aliases: pup]moss repo refresh [Aliases: rrf]moss repo updateand its aliases)syncoperation is updated to also take a-r|--refreshargument instead:moss sync -r|--refreshmoss sync -u|--updateand its aliases)