3
26
Fork
You've already forked mere
1

refactor: split install into resolveProfile + realizeProfile #58

Merged
jhuntwork merged 1 commit from refactor/profile-realization into main 2026年04月03日 22:20:36 +02:00

Extract resolveProfile (sync + resolve, no side effects) and
realizeProfile (store admission + generation + activation) from the
monolithic installPackagesToProfile. All install/uninstall entry points
now use this two-phase approach.

Uninstall improvements:

  • Detect when a package is still required as a transitive dependency
    and refuse with a message naming the dependents
  • Add --cascade flag to remove dependent requested roots
  • Add --dry-run flag to preview changes without applying
  • Skip remote repo sync during uninstall (resolve against local cache)
  • Use .uninstall UI phase so output says 'uninstall' not 'install'

Output improvements:

  • Diff-based summary showing named installed/uninstalled/upgraded
    packages and unchanged count
  • Skip generation creation when profile is already up to date
  • Suppress 'verified in store' and false 'installed to store' noise
  • Remove misleading success messages from CLI handlers
  • Fix redundant PackageNotFound error formatting

Resolver: expose dependency_names on ResolvedPackage for reverse
dependency lookups.

Fixes #49

Extract resolveProfile (sync + resolve, no side effects) and realizeProfile (store admission + generation + activation) from the monolithic installPackagesToProfile. All install/uninstall entry points now use this two-phase approach. Uninstall improvements: - Detect when a package is still required as a transitive dependency and refuse with a message naming the dependents - Add --cascade flag to remove dependent requested roots - Add --dry-run flag to preview changes without applying - Skip remote repo sync during uninstall (resolve against local cache) - Use .uninstall UI phase so output says 'uninstall' not 'install' Output improvements: - Diff-based summary showing named installed/uninstalled/upgraded packages and unchanged count - Skip generation creation when profile is already up to date - Suppress 'verified in store' and false 'installed to store' noise - Remove misleading success messages from CLI handlers - Fix redundant PackageNotFound error formatting Resolver: expose dependency_names on ResolvedPackage for reverse dependency lookups. Fixes #49
refactor: split install into resolveProfile + realizeProfile
All checks were successful
/ test (pull_request) Successful in 5m32s
ec59d65c2a
Extract resolveProfile (sync + resolve, no side effects) and
realizeProfile (store admission + generation + activation) from the
monolithic installPackagesToProfile. All install/uninstall entry points
now use this two-phase approach.
Uninstall improvements:
- Detect when a package is still required as a transitive dependency
 and refuse with a message naming the dependents
- Add --cascade flag to remove dependent requested roots
- Add --dry-run flag to preview changes without applying
- Skip remote repo sync during uninstall (resolve against local cache)
- Use .uninstall UI phase so output says 'uninstall' not 'install'
Output improvements:
- Diff-based summary showing named installed/uninstalled/upgraded
 packages and unchanged count
- Skip generation creation when profile is already up to date
- Suppress 'verified in store' and false 'installed to store' noise
- Remove misleading success messages from CLI handlers
- Fix redundant PackageNotFound error formatting
Resolver: expose dependency_names on ResolvedPackage for reverse
dependency lookups.
Fixes #49 
jhuntwork deleted branch refactor/profile-realization 2026年04月03日 22:20:38 +02:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
merelinux/mere!58
Reference in a new issue
merelinux/mere
No description provided.
Delete branch "refactor/profile-realization"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?