Skip to content

Do not pin golang version in CI.#4

Merged
toothbrush merged 6 commits into
mainfrom
20260604-no-pin-golang
Jun 4, 2026
Merged

Do not pin golang version in CI.#4
toothbrush merged 6 commits into
mainfrom
20260604-no-pin-golang

Conversation

@toothbrush

@toothbrush toothbrush commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Description

There's a latent time bomb for whoever is unlucky to touch this repo last. We have version pinning that can drift between here and entireio/cli.

https://github.com/entireio/cli/blob/1db011c007fe0c82d60a0d497da416da702906c7/go.mod#L3 now pins 1.26.4, whereas our CI pins something older. No point. Just remove and let the very capable Golang toolchain handle it.

In 906b17d we see a failure, because there's a version mismatch. This is because CLI effectively drifted from this repo. Boo. Let's make it automatic.

Also actions/setup-go has surprising defaults, so it took me a few tries to get it to work as i wanted.


Note

Cursor Bugbot is generating a summary for commit b1abf1d. Configure here.

toothbrush and others added 6 commits June 4, 2026 10:34
Without --yes the plugin prompts, hits EOF on CI stdin, and aborts, so
no smoke job performed an upgrade — they passed vacuously. Pass --yes so
the upgrade runs, and add `set -o pipefail` (bash) / a $LASTEXITCODE
guard (pwsh) so a failed upgrade fails the step instead of being
swallowed by the `tee` pipeline.

Expected to fail on the go-install jobs: `go install`ing the latest cli
needs the Go version in its go.mod (1.26.3), above the runner's pinned
1.26.2. Unpinning is a separate change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 67a06b45a991
Entire-Checkpoint: ab17fa70cf8a
This reverts commit d1fbb50.
setup-go exports GOTOOLCHAIN=local, which blocks `go install` from
fetching the newer toolchain the latest cli's go.mod requires. Override
it to auto on the two go-install Exercise steps so the upgrade tracks
cli's climbing Go floor instead of failing on a pinned toolchain.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: da89d3c6f140
@toothbrush
toothbrush marked this pull request as ready for review June 4, 2026 01:36
@toothbrush
toothbrush merged commit 40e01c7 into main Jun 4, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant