Agent Skills
› authgear/authgear-server
› update-go-version
update-go-version
GitHub用于在仓库中统一更新 Go 工具链版本,确保所有模块和构建文件保持一致。
Trigger Scenarios
需要升级项目 Go 版本时
同步多模块 Go 版本以消除漂移时
Install
npx skills add authgear/authgear-server --skill update-go-version -g -y
SKILL.md
Frontmatter
{
"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-versionsgo.modcustombuild/go.mode2e/go.modk6/go.modpackagetracker/go.mod.tplcustombuild/cmd/authgear/Dockerfilecustombuild/cmd/portalx/Dockerfilecmd/portal/Dockerfilecmd/authgear/Dockerfileonce/partial.dockerfile
Workflow
- Update the version in every file above.
- Use
nix store prefetch-fileto refresh the hash inflake.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.
Version History
- 2dd6d88 Current 2026-07-24 16:30


