From f707247b72877a5b8149ba57c0d70ddec1a29602 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 9 Nov 2026 23:18:38 +0000 Subject: [PATCH 1/3] Update goreleaser/goreleaser-action action to v7 --- .github/workflows/goreleaser-check.yml | 2 +- .github/workflows/goreleaser.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/goreleaser-check.yml b/.github/workflows/goreleaser-check.yml index f13e721330..a443acdb4f 100644 --- a/.github/workflows/goreleaser-check.yml +++ b/.github/workflows/goreleaser-check.yml @@ -13,7 +13,7 @@ jobs: # `goreleaser check` only parses the config; it needs neither Go nor # git history. - name: Check GoReleaser config - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v7 with: version: latest args: check diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 35e3125826..dab046b1ca 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -188,7 +188,7 @@ jobs: DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v7 with: version: latest # We use a different goreleaser config for releasing a new latest version vs. From 940218fb7eaf885e5e81c48f17d6f45cfbf4f868 Mon Sep 17 00:00:00 2001 From: Marc LeBlanc <7050295+marcleblanc2@users.noreply.github.com> Date: Mon, 9 Nov 2026 17:33:09 -0600 Subject: [PATCH 2/3] ci: pin GoReleaser to v2.9.0 and update configs to version 2 goreleaser-action v7 resolves `version: latest` to GoReleaser v2, where v5 resolved it to v1. `goreleaser check` on v2.19.0 exits 2 because the config uses deprecated properties. - Add `version: 2` and rename `archives.format` to `formats`. - In .goreleaser-patch.yml, rename `brews.tap` to `repository` and `brews.folder` to `directory`; GoReleaser v2 removed the old names. - Pin GoReleaser to v2.9.0, the last release before `brews` was deprecated in favor of `homebrew_casks`. Moving to casks changes how the Homebrew tap is published, so it is left for a separate change. --- .github/workflows/goreleaser-check.yml | 4 +++- .github/workflows/goreleaser.yml | 3 ++- .goreleaser-patch.yml | 9 +++++---- .goreleaser.yml | 5 +++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/goreleaser-check.yml b/.github/workflows/goreleaser-check.yml index a443acdb4f..7e00d61472 100644 --- a/.github/workflows/goreleaser-check.yml +++ b/.github/workflows/goreleaser-check.yml @@ -15,5 +15,7 @@ jobs: - name: Check GoReleaser config uses: goreleaser/goreleaser-action@v7 with: - version: latest + # Pinned: GoReleaser v2.10+ deprecates `brews`, which fails + # `goreleaser check`. Unpin after moving to `homebrew_casks`. + version: v2.9.0 args: check diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index dab046b1ca..7b48f00265 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -190,7 +190,8 @@ jobs: - name: Run GoReleaser uses: goreleaser/goreleaser-action@v7 with: - version: latest + # Keep in sync with the version in goreleaser-check.yml. + version: v2.9.0 # We use a different goreleaser config for releasing a new latest version vs. # releasing a patch on an older version. For releasing the new latest version, # we want to update the main (unversioned) Homebrew formula. For releasing a diff --git a/.goreleaser-patch.yml b/.goreleaser-patch.yml index 5650e19d6b..d0ba187d3b 100644 --- a/.goreleaser-patch.yml +++ b/.goreleaser-patch.yml @@ -3,6 +3,7 @@ # the Homebrew tap and does not publish a "latest" image to Docker Hub. It should match # .goreleaser.yml in every way except for the brews.name template and the # dockers.image_templates list. +version: 2 dist: release env: - GO111MODULE=on @@ -27,9 +28,9 @@ builds: - arm64 archives: - id: tarball - format: tar.gz + formats: tar.gz - id: bin - format: binary + formats: binary wrap_in_directory: false name_template: "src_{{ .Os }}_{{ .Arch }}" brews: @@ -37,12 +38,12 @@ brews: name: src-cli@{{ .Major }}.{{ .Minor }}.{{ .Patch }} homepage: "https://sourcegraph.com/" description: "Sourcegraph CLI" - tap: + repository: owner: sourcegraph name: homebrew-src-cli # Folder inside the repository to put the formula. # Default is the root folder. - folder: Formula + directory: Formula # We need to set this so that goreleaser doesn't think the binary is called # `src-cli` install: | diff --git a/.goreleaser.yml b/.goreleaser.yml index e82823cf09..6bfccb6d92 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,6 +2,7 @@ # release. It updates the main formula in the Homebrew tap. It should match # .goreleaser-patch.yml in every way except for the brews.name template and the # dockers.image_templates list. +version: 2 dist: release env: - GO111MODULE=on @@ -26,9 +27,9 @@ builds: - arm64 archives: - id: tarball - format: tar.gz + formats: tar.gz - id: bin - format: binary + formats: binary wrap_in_directory: false name_template: "src_{{ .Os }}_{{ .Arch }}" brews: From 5d37ee0f37eb204a4b6d03e044e87a9ffdec018a Mon Sep 17 00:00:00 2001 From: Marc LeBlanc <7050295+marcleblanc2@users.noreply.github.com> Date: Mon, 9 Nov 2026 18:48:18 -0600 Subject: [PATCH 3/3] ci: cap Renovate's GoReleaser updates below v2.10.0 Renovate updates the goreleaser-action `version` input, so it would bump the v2.9.0 pin to the latest v2 release, which fails `goreleaser check` on the deprecated `brews` section. Remove the cap after moving to `homebrew_casks`. Amp-Thread-ID: https://ampcode.com/threads/T-01a1c294-b266-7190-94ba-430f0658a726 Co-authored-by: Amp --- renovate.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/renovate.json b/renovate.json index dee4083d81..a3dc1d00a1 100644 --- a/renovate.json +++ b/renovate.json @@ -5,5 +5,14 @@ "extends": [ "github>sourcegraph/renovate-config" ], + "packageRules": [ + { + "description": "GoReleaser v2.10+ deprecates brews, which fails goreleaser check. Remove after moving to homebrew_casks.", + "matchPackageNames": [ + "goreleaser/goreleaser" + ], + "allowedVersions": "<2.10.0" + } + ], "semanticCommits": false }