Skip to content

v0.11.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 22:07
· 22 commits to main since this release
051b43d

spov 0.11.0 can update itself: spov update installs the latest release after verifying its signature, and spov tells you once a day when a newer release is out.

Upgrading

  • This one last time, update the way you installed.
    • With the install script, run it again:

      curl -fsSL https://github.com/jimutt/spov/releases/latest/download/install.sh | sh -s -- --with-opencode

      From 0.11.0 on, spov update does it.

    • With Homebrew, run brew upgrade --cask spov, as before.

  • A hosted server needs no migration. Deploy it as usual. Its GET /api/v1/me now names its build, which spov version reads.
  • Building from source needs Go 1.27.

spov update

  • Without arguments, it installs the latest release:
    1. downloads the release for this machine;
    2. verifies the signature on the release's checksums with Sigstore (no cosign needed), which must come from spov's release workflow at that release's own tag;
    3. checks the archive against those checksums;
    4. checks that the new binary runs and reports the version asked for;
    5. replaces the binary in one atomic step.
  • The new spov finishes the job:
    • It installs the OpenCode version it pins, where spov looks for it, checked against the integrity spov records. That now covers macOS as well as Linux.
    • It says whether the sandbox image for that version is built, or to run spov init.
  • Your local spov server:
    • An idle one is stopped, so the next command starts one of the new build.
    • One with live sessions is named, and spov asks before going on. The sessions carry on in their sandboxes, and the next command restarts the server on the new build.
  • It never moves you to a lower version on its own. spov update --version 0.10.2 installs an older release, after a loud warning that it has no spov update, and a question, or --yes.
  • What it refuses:
    • A Homebrew install: it names brew upgrade --cask spov.
    • A build from source: it names go install.
    • A directory spov cannot write to.
  • --json prints one JSON view of what was done.

A notice when a release is out

  • Once a day, spov asks GitHub which release is the latest: one request to releases/latest, which shows GitHub your address. When a newer one exists, it says so in one line:

    spov 0.11.1 is available (you have 0.11.0): spov update
    

    The line appears as spov fly's launch view closes, and in spov version. A Homebrew install is told brew upgrade --cask spov instead.

  • When nothing is asked: off a terminal, under CI, or once you turn it off.

  • To turn it off, set updates.check: false in your user file, or SPOV_UPDATES_CHECK=false. A repository's .spov.yaml cannot set it.

    • A spov older than 0.11.0 refuses a user file that sets updates. Remove the key before downgrading.
  • With a hosted server, spov version also says when the server runs another build, for example the server runs 0.10.2 (this spov is 0.11.0).

Also in this release

  • spov builds on Go 1.27.4. The binary grows by about 1 MB: the signature check adds 3.7 MB, and Go 1.27 saves 2.8 MB.