8000 Installer: after --uninstall, a 0.7 install over 0.8 state is not refused · Issue #3911 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

Installer: after --uninstall, a 0.7 install over 0.8 state is not refused #3911

In review

Description

@mitodrummer

Situation

On 2026-12-01 a developer on 0.8.0-dev.748 (macOS, VM provider) ran curl -fsSL https://go.minimal.dev/unstable | sh -s -- --uninstall (plain, no --purge), then installed from the stable channel (0.7.4). The install was not refused. 0.7.4 started on the 0.8 box state, could not parse the 0.8 records, dropped them all from the box index, and min ls showed no boxes. The records and box contents stayed on disk; reinstalling 0.8 is expected to re-index them.

Cause

The R2.6 guard (state_from_0_8, scripts/install.sh) detects 0.8 state from:

  1. the install.toml key, or $bindir/min version when the key is a hash (fix(install): refuse 0.7 over 0.8 state that an install by commit hash wrote #3901), and
  2. $box_state/sessions/index.json with format_version >= 1.

--uninstall removes both install.toml (it is in the install record, record_generated) and min. On the VM provider the box index is inside providers/local-minvmd0/data-vol.raw, so (2) never fires on macOS. After an uninstall nothing tells the installer that the state is 0.8, and a 0.7 install proceeds. The documented uninstall and install commands both use the stable channel, so this path is easy to hit from a 0.8 dev build.

0.7.4's session store then rewrites the index without the 0.8 entries (DropMissing on the unknown stopped status) and without format_version.

Work

  • Keep a marker of the state's version that survives --uninstall (outside the install record, or read from inside the VM data volume), and have the R2.6 guard read it, so a 0.7 install over 0.8 state is refused after an uninstall too.
  • Decide whether --uninstall should keep install.toml (or a copy of its key) beside the state for the same reason.
  • Tests: an install_test case for uninstall → install 0.7 over 0.8 state (refused, nothing changed), and journeys J6/J7 on Run the 0.7 to 0.8 upgrade journeys on the VM provider (macOS) #3876.

Related

#3876 (upgrade journeys; J6 and J7 to add), #3900 / #3901 (the hash-key gap), inbox#1330.

🤖 Generated with Claude Code

https://claude.ai/code/session_016CYvTyVpjTE7DxZiZ29NeY

Activity

  1. added
    priority:must-have
    release:0.8.0
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:must-haverelease:0.8.0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0