Track claude-code versions via update-gh using GitHub tags #163
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
claude-codehas no GitHub Releases — versions are tracked via Git tags athttps://github.com/anthropics/claude-code. The binary is downloaded from the
internal artifact proxy (not from GitHub), so the upgrade path is different from
other packages.
Required changes
Version detection — use the GitHub tags API
(
GET /repos/anthropics/claude-code/tags) instead of the releases endpoint.Add a
github_version_source: tagsfield (or similar) to metadata.yaml toopt into this mode.
Download URL — the build script already fetches from
artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/claude-ai/claude-code-releases/${PACKAGE_VERSION}/linux-x64/claude.No change needed there; update-gh only needs to write the new version into
metadata.yaml.
Tag normalisation — claude-code tags are plain semver (
2.1.126), novprefix. Ensure the version parser handles both forms.Acceptance criteria
./tools/build upgrade claude-codedetects the latest tag and updatesrpms/claude-code/metadata.yamlwith the new versionbuild.shcontinues to work unchanged