release fails when proxy hasn't indexed a freshly pushed tag yet #28
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
heiko/gogogo#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Symptom
When releasing from a freshly pushed semver tag (e.g.
git push --tags && gogogo release --commit v1.2.3), the very first call togo mod download module@v1.2.3may fail becauseproxy.golang.org(or a private proxy) has not yet indexed the new tag.Where
internal/builder/verify.go→ResolveModuleVersion, called frominternal/cmd/release/release.go→executeFromClone. The proxy query is a single shot — there is no retry/poll.Why this is a bug, not just a quirk
GOPROXY=proxy.golang.org,directthe request silently falls back todirectmode and works, masking the issue.GOPROXY=https://proxy.example.comwith nodirect), the release fails immediately on what is actually a transient condition.internal/goproxyalready providesCheckVersionfor exactly this case (poll until the proxy returns 200) but it is unused by the release flow.Suggested fix
Before calling
ResolveModuleVersionfor a stable semver tag, poll the proxy withgoproxy.CheckVersion(ctx, module, tag)(bounded by the existing 120 s context). For pseudo-versions / branch builds the new commit-SHA-anchored proxy query (branchai-claude-fix-proxy) makes this less critical, but a short bounded poll there too would not hurt.Related
Sibling fix on branch
ai-claude-fix-proxyaddresses a different but adjacent issue (clone-vs-proxy commit divergence for branch builds).