8000 Installer installs 0.7 over 0.8 state after an install by commit hash, on the VM provider · Issue #3900 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content
10000

Installer installs 0.7 over 0.8 state after an install by commit hash, on the VM provider #3900

Done

Description

@agent-137

Found by #3876 J2, run on Karl's Mac: a spawnpoint Debian arm64 VM with nested KVM and the VM provider (local-minvmd), upgrading from 0.7.2 to f0ccb306 (unstable 748).

Situation

install.sh --version 0.7.2 over the 0.8 state installed every component and exited 0, with no refusal. A 0.7 binary then runs over state it cannot read. R2.6 says the installer refuses this before it downloads anything.

Cause

state_from_0_8 (scripts/install.sh) finds 0.8 state in two ways:

  1. The key in install.toml names a version from 0.8 on. A bucket install of a nightly or candidate is named by its commit hash (versions/f0ccb306), and the installer writes that hash as the key. ver_from_0_8 cannot place a hash.
  2. $box_state/sessions/index.json has a format_version above 0. With the VM provider that index is inside the VM's data volume (providers/local-minvmd0/data-vol.raw), so the host never has one.

So every install by hash on the VM provider is unguarded. That includes an RC named by its commit, and every nightly.

Fix

When the key cannot be placed, state_from_0_8 asks the min on disk (min version), the build that install placed, once per run. A min that reports 0.8 or later means 0.8 state. The key stays the hash, because the update check compares it with the channel pointer. Spec 07 R2.6 states the new rule, and scripts/install_test.sh case rd13 pins it: an install by hash, with no box index on disk.

Not in this fix: a host-side marker for the VM provider's state. With this fix, an install by any recorded key is guarded. A VM-provider state with no install.toml (one not made by the installer) is still unguarded.

Part of #3876. Must-have for the 0.8.0 RC.

Activity

  1. added
    priority:must-have
    release:0.8.0
    on Nov 30, 2026
  2. added a commit that references this issue on Dec 1, 2026
    b93ee6b
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