Repository navigation
Open
Labels
enhancementNew feature or request
Milestone
Description
Problem
Unchanged reuse never upgrades packages, by design. But there is no way to ask for an upgrade either. An installation is reused for as long as its tool requirements, install environment and host match, so:
- a requirement that is not an exact version (
latest,24, a range) stays at whatever it resolved to on the day of the first apply; - an exact top-level version keeps the transitive dependencies it first resolved, including ones with later security fixes;
- contributors who applied at different times run different versions with no command to converge.
The only route today is to edit the declared version or delete private storage by hand, which the brief says contributors should not need to do. The brief lists explicit package upgrades as a later possibility.
Proposal
An apply option in the style of --rerun-init:
openlune apply --upgrade <mcp-id>- Runs a fresh
mise installfor that server's tool requirements instead of reusing the saved installation, then prepares the launch binding against the result. - Plan and review show it as an installation step with its commands, and it needs the usual approval.
--yesalone never upgrades. - Without the flag nothing changes: unchanged apply still writes nothing.
- Version resolution stays with mise. No lock file, resolver graph or "outdated" check.
Open questions
- An installation can be shared by several servers with the same tool set. Does upgrading one upgrade all of them, and how does review say so?
- Does a successful initializer need to run again after an upgrade, or does that stay with
--rerun-init? - Is the previous installation kept for reuse, replaced, or removed? On Windows installations are named by a shortened identity, so a second installation with the same requirements needs a decision.
- If the upgrade fails after package code ran, the old installation should keep working. Is that achievable without new state?
- Is a per-server flag enough, or is
--upgradewith no ID (everything) the common request?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity