Repository navigation
Replies: 1 comment
|
Thanks for the detailed write-up. I agree with the core of this: one run that installs what's missing and upgrades what's installed, inside the existing package and tools phases, so hooks and services still see the upgraded software. I'd leave the self-update and re-exec step out. mise self-update --yes && mise bootstrap --upgradeI opened #14433 with the rest: Making this automatic, like AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: 2.1.295. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Could we add an opt-in
mise bootstrap --upgradeflag that applies the declared machine setup and upgrades its managed software in one invocation?I manage my machine through a configuration repository adopted with
mise bootstrap --adopt. Most of my tools and system packages use"latest", with some requests such as Node.js"lts". I would like one command to install missing requirements, upgrade existing software within those requests, and apply the rest of the configuration.Currently,
mise bootstrap --updaterefreshes package metadata and updates repositories, but it does not generally upgrade already-satisfied package and tool requirements. The bootstrap package phase uses the install operation, while the tools phase invokes a baremise install.I therefore maintain a separate task that runs:
My bootstrap hooks already handle fish plugins and completion generation. Coordinating the additional upgrades through custom tasks introduces ordering concerns and potentially repeats work.
The proposed behavior would be:
mise upgrade, without implicitly enabling--bump.requires_tools = trueshould continue to run after tools and plugin-provided packages.The existing
self_update.automechanism provides a precedent for the first step: when an eligible command is invoked, it can update mise and restart that same command. It does not independently invoke bootstrap or upgrade declared packages and tools. This request is for an explicit, coordinated upgrade mode rather than relying on the periodic automatic-update setting. Running self-update from a bootstrap hook or final task does not replace the already-running parent bootstrap process.Existing bootstrap behavior should remain unchanged without the flag. The upgrade mode should respect configured version requests, supported package pins, phase selection, and installations where self-update is disabled.
--dry-runshould preview the upgrade actions without performing them, including self-update.Existing service restart/reload behavior and Compose image-pull/recreation policies should remain unchanged. This request does not imply restarting every service or refreshing every container image.
The relationship with
--updateshould remain explicit: software upgrades require refreshed package metadata, while Git repository updates should retain their existing behavior.It would also make sense to support:
Adopting a configuration does not necessarily mean the machine has no existing software. Even a fresh OS installation can contain older versions of declared packages.
The intended scope is the software declared in mise, plus mise itself—not a full operating-system or distribution upgrade.
All reactions