Skip to content

fix(release): let GoReleaser infer the GitHub owner/name - #67

Merged
csnitker-godaddy merged 1 commit into
mainfrom
fix/goreleaser-infer-repo
Jul 15, 2026
Merged

csnitker-godaddy merged 1 commit into
mainfrom
fix/goreleaser-infer-repo

Conversation

@kperry-godaddy

Copy link
Copy Markdown
Member

Problem

Binary publishing has been broken since the repo moved from the godaddy org to agentnameservice. The v0.1.6 release (run 28267836069) built everything, then every asset upload failed:

• releasing  tag=v0.1.6  repo=godaddy/ans
• upload failed  error=POST https://uploads.github.com/repos/godaddy/ans/releases/345549247/assets?name=ans_0.1.6_linux_amd64.tar.gz: 307 location <nil>

.goreleaser.yaml hardcodes release.github.owner: godaddy from before the transfer. GoReleaser still finds the release through GitHub's rename redirect, but the uploads.github.com POSTs 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 since godaddy/agent-trust-discovery never 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: append is 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

.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>
Copilot AI review requested due to automatic review settings July 14, 2026 03:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/name from .goreleaser.yaml so 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 thread .goreleaser.yaml
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
csnitker-godaddy added this pull request to the merge queue Jul 15, 2026
Merged via the queue into main with commit e51993f Jul 15, 2026
3 checks passed
@csnitker-godaddy
csnitker-godaddy deleted the fix/goreleaser-infer-repo branch July 15, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants