Skip to content

v1.3.39

Choose a tag to compare

@earentir earentir released this 28 Sep 14:26
· 9 commits to main since this release

What's Changed
Platform & installs
Download the correct Go archive for the host OS/arch (not always linux-amd64).
Move aside unusable or wrong-platform installs before replace/switch.
Resolve latest to the newest stable release for your platform.
Verify downloads with SHA256 from go.dev; enforce HTTP status checks and timeouts.
Safer tar extract (path confinement, truncate files on write).
Backup naming: never wipe an existing go- tree; use go--2, -3, … on collision.
switch: prepare the target tree before moving the live install; commands exit non-zero on failure.
Windows: install/update/switch/toolchain/sync are unsupported (zip installs not implemented).
Configuration
Persist extract_root in ~/.config/updatego/config.json after a successful install.
update, status, list, and switch use that root (default /usr/local).
install --user uses $HOME/.local ($HOME/.local/go as GOROOT); GOPATH stays $HOME/go.
After install, print shell export hints (GOROOT, PATH, GOPATH) instead of implying env was set.
Toolchain & modules
toolchain — show GOTOOLCHAIN; toolchain auto / toolchain local via managed go.
sync — set GOTOOLCHAIN=goX.Y.Z to match the active managed Go.
switch VERSION — set GOTOOLCHAIN=local and update toolchain in ./go.mod when present (including when already on that version).
status — show GOTOOLCHAIN from the managed binary.
install and update do not change GOTOOLCHAIN or go.mod.
Build
Makefile: make builds ./updatego; make all builds static binaries for linux/amd64, windows/amd64, and darwin/arm64 into builds/.