From 0ad5f0cc5ef09ebbf1b179bd093c0fb2a1d7cbc5 Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 18:29:34 +0100 Subject: [PATCH] fix(sdk-go): stream.Version for v0.5.1, retract v0.5.0 The v0.5.0 tag was pushed with Version 0.3.0, so release-sdk-go.yml refused it after the proxy had taken it. Version is 0.5.1, v0.5.0 is retracted, and the release steps check Version before the tag is pushed. Co-Authored-By: Claude Sonnet 5.5 --- .claude/skills/sdk-go/SKILL.md | 3 +++ sdks/go/go.mod | 2 ++ sdks/go/stream/backend.go | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.claude/skills/sdk-go/SKILL.md b/.claude/skills/sdk-go/SKILL.md index 0135331a23..42ac41268b 100644 --- a/.claude/skills/sdk-go/SKILL.md +++ b/.claude/skills/sdk-go/SKILL.md @@ -120,12 +120,15 @@ is copied. While 0.x, a minor may break a signature; a patch only fixes. tagged commit's. 3. Tag the commit that holds the change by its SHA, not whatever `main` is by then. Never create a GitHub Release for it: `release.yml` publishes the Python packages on a release. + Check its `Version` first, as below: the proxy takes a pushed tag before the workflow runs, + so a tag the workflow refuses stays public (`v0.5.0` did). ```bash set -euo pipefail # a failed check below stops before the tag git fetch origin SHA= git merge-base --is-ancestor "$SHA" origin/main # exits 0, else the script stops + git show "$SHA:sdks/go/stream/backend.go" | grep -q 'Version = "X.Y.Z"' # the workflow's own check git tag sdks/go/vX.Y.Z "$SHA" git push origin sdks/go/vX.Y.Z ``` diff --git a/sdks/go/go.mod b/sdks/go/go.mod index 91c99ac4af..7de1575201 100644 --- a/sdks/go/go.mod +++ b/sdks/go/go.mod @@ -2,6 +2,8 @@ module github.com/GetStream/Vision-Agents/sdks/go go 1.25.0 +retract v0.5.0 // stream.Version reports 0.3.0; use v0.5.1 + tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen require ( diff --git a/sdks/go/stream/backend.go b/sdks/go/stream/backend.go index d690d33971..da0573a94c 100644 --- a/sdks/go/stream/backend.go +++ b/sdks/go/stream/backend.go @@ -56,7 +56,7 @@ const ( // Version is this SDK's release, the tag sdks/go/vX.Y.Z without its v. It is written // here by hand at each release (see the sdk-go skill), because build info reads (devel) // for any build not fetched by tag. - Version = "0.3.0" + Version = "0.5.1" // UserAgent is what every request says this SDK is, which is how the router's request log // tells which SDK, and which release of it, made a call. UserAgent = "stream-agents-go/" + Version