Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/ci: fix goreleaser when using gomod.proxy
We enable gomod.proxy, meaning that `goreleaser release` builds CUE tags by pulling the version through proxy.golang.org, which helps so that our CUE binaries get stamped with the right main module version. This unfortunately broke with a recent change adding `id: main`, which caused the CI build of v0.8.0-alpha.2 to fail: failed to proxy module: exit status 1: go: malformed module path "./cmd/cue": invalid path element "." Paul added the explicit "id" field because otherwise goreleaser complains about duplicate ID strings: found 2 builds with the ID 'cue', please fix your config It should default to the binary name string, so make it that, which fixes the build of v0.8.0-alpha.2 with goreleaser. I verified this with `goreleaser --skip=announce,publish,validate`, which is similar to `goreleaser --snapshot`, but expects a current tag and also does keep gomod.proxy enabled. Leave notes to remind ourselves of the tricky details above. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I2e65a706601c65e7219c5822727b650fe4225461 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1176868 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information