| name | update-go-version |
| description | Update the Go toolchain version across the repo. |
| argument-hint | <new Go version> |
Use this skill when the Go version changes.
Files to update
flake.nix
.tool-versions
go.mod
custombuild/go.mod
e2e/go.mod
k6/go.mod
packagetracker/go.mod.tpl
custombuild/cmd/authgear/Dockerfile
custombuild/cmd/portalx/Dockerfile
cmd/portal/Dockerfile
cmd/authgear/Dockerfile
once/partial.dockerfile
Workflow
- Update the version in every file above.
- Use
nix store prefetch-file to refresh the hash in flake.nix.
- Run
make go-mod-tidy.
- Run
make once/Dockerfile.
- Verify the repo still builds if the version bump changed tool behavior.
Notes
- Keep the version updates consistent across all Go modules.
- Do not leave one module on the old version; that creates hard-to-debug drift.