Repository navigation
fix(release): let GoReleaser infer the GitHub owner/name - #67
Merged
Merged
Conversation
.goreleaser.yaml hardcoded release.github.owner: godaddy from before the repo moved to the agentnameservice org. Since the transfer, GoReleaser still resolves the existing release through the rename redirect, but asset uploads POSTed to the old uploads.github.com/repos/godaddy/ans/... path get 307 redirects the client cannot follow — v0.1.6 released with no binaries attached (v0.1.3–v0.1.5, published pre-move, were fine). Drop the release.github block entirely — GoReleaser infers owner/name from the CI environment / git remote, so the config keeps working across org renames and transfers. The next release cut from this commit will publish binaries normally. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes broken binary publishing after the repository moved orgs by removing hardcoded GitHub owner/name from GoReleaser configuration, allowing GoReleaser to infer the correct repository from the CI environment / git remote.
Changes:
- Removed
release.github.owner/namefrom.goreleaser.yamlso GoReleaser can infer the correct repo after transfers/renames. - Added an explanatory comment documenting why the fields are intentionally omitted.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+132
to
+136
| # owner/name are intentionally omitted: GoReleaser infers them from the CI | ||
| # environment / git remote, so releases keep working across org renames and | ||
| # transfers. The hardcoded `github.owner: godaddy` is what broke the v0.1.6 | ||
| # release after the repo moved to the agentnameservice org (asset uploads to | ||
| # the old owner path got 307 redirects GoReleaser cannot follow). |
csnitker-godaddy
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Binary publishing has been broken since the repo moved from the
godaddyorg toagentnameservice. The v0.1.6 release (run 28267836069) built everything, then every asset upload failed:.goreleaser.yamlhardcodesrelease.github.owner: godaddyfrom before the transfer. GoReleaser still finds the release through GitHub's rename redirect, but theuploads.github.comPOSTs to the old owner path return 307 redirects the client cannot follow with a file body. So v0.1.3–v0.1.5 (published pre-move) have binaries; v0.1.6 has none.The same stale config was copied into
agent-trust-discovery, where it broke that repo's v0.1.1 release as a hard 404 (no redirect there sincegodaddy/agent-trust-discoverynever existed) — fixed in agentnameservice/agent-trust-discovery#4.Fix
Drop the
release.github:block entirely. When omitted, GoReleaser infers owner/name from the CI environment / git remote, so releases keep working across org renames and transfers instead of recreating this trap with a new hardcoded owner.release.mode: appendis kept — release-please still owns the release body; GoReleaser only attaches artifacts.Recovery
Re-running the failed v0.1.6 job cannot pick this up (the goreleaser job checks out the tag, whose config is frozen). This lands as a
fix:commit so release-please cuts v0.1.7, which will publish binaries normally. v0.1.6 stays source-only.🤖 Generated with Claude Code