Skip to content

Upgrade

Commit your work first, so that you can go back. Read the notes of each release on the releases page, then take a version from it and put it in place of <version>:

bun add --dev --exact @gspothq/cli@<version>
bunx --no-install gspot install
bunx --no-install gspot check

gspot install writes the generated files again and installs the tool versions of the new release. If it rejects a setting in gspot.toml, the message names the line and what to write instead. If it says gspot did not overwrite these files, the new release writes a file where you have one of your own, so move yours out of the way and run it again.

When you upgrade gspot, or run gspot init in a new repository, gspot install stops if a pinned tool is newer than dependencies.min_release_age_days and names the tool. Wait, or lower the setting. A clone that installs from the committed tool lockfiles does not wait.

A new release can pin tools that format or report code in a new way, and gspot check lists what they find in the whole repository. If your repository had no findings before the upgrade, run gspot check --fix, then fix or ignore the rest. If it still has old findings, leave them, because a commit checks what you stage, and fix each file as you touch it.

Commit these files together: the generated files that changed, in .gspot/ and outside it, gspot.toml if you changed it, and either package.json with its lockfile or mise.toml. The next push runs the push checks with the new tools, and gspot check --only push shows the result first. Then run gspot install in each other clone, as Set up a clone describes.

To go back, check out the commit from before the upgrade. An upgrade can leave older tool versions and download caches outside your repository, and Free disk space shows how to delete them.