Skip to content

Conversation

@nicksnyder
Copy link
Member

The goal of this change is to fix the symptoms described in the following two issues:

It seems the goreleaser action that was triggered by the 1.2.1 tag thought that the current tag was 1.2.1.SNAPSHOT.0

git state    commit=7b06248484ceeaa947e93ca2747eccf336a88ecc branch=HEAD current_tag=v1.2.1-SNAPSHOT.0 previous_tag=v1.2.0

Source: https://github.com/bufbuild/protoc-gen-validate/actions/runs/12916704001/job/36021453853#step:5:21

Basically we ended up with two tags pointing at the same commit and goreleaser picked one: goreleaser/goreleaser#4134

We were unnecessarily increasing the likelihood of that happening by force fetching all tags (which is unnecessary because we will already have the intended tag fetched that triggered the push), so I removed that step here: 87dc0be

Additionally, I don't think there is any value in having snapshot tags at all so I deleted the entire version bump workflow here: 79a4a4f

Furthermore, we had goreleaser configured to publish drafts, which doesn't make sense if we want to initiate release from the GitHub UI (which I think we do and is similer/easier) so I deleted all the extra config here: 56f26d0
The default config is the right thing for us.

Finally there were some settings in setup-go we had configured that have no effect now, so I removed them: 33528d7

@nicksnyder nicksnyder merged commit a11b03b into main Jan 23, 2025
5 checks passed
@nicksnyder nicksnyder deleted the ci branch January 23, 2025 15:40
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.

4 participants