Skip to content

CI: fix the failure of goreleaser#1146

Merged
rodaine merged 2 commits intobufbuild:mainfrom
suzuki-shunsuke:ci-fix-goreleaser-v2
Aug 12, 2024
Merged

CI: fix the failure of goreleaser#1146
rodaine merged 2 commits intobufbuild:mainfrom
suzuki-shunsuke:ci-fix-goreleaser-v2

Conversation

@suzuki-shunsuke
Copy link
Contributor

The release workflow failed at v1.1.0.

https://github.com/bufbuild/protoc-gen-validate/releases/tag/v1.1.0

https://github.com/bufbuild/protoc-gen-validate/actions/runs/10252222901/job/28362117064

/opt/hostedtoolcache/goreleaser-action/2.1.0/x64/goreleaser release --rm-dist
  ⨯ command failed                                   error=unknown flag: --rm-dist
Error: The process '/opt/hostedtoolcache/goreleaser-action/2.1.0/x64/goreleaser' failed with exit code 1

--rm-dist was deprecated.

https://goreleaser.com/deprecations/#-rm-dist

Furthermore, we need to add version: 2.

$ goreleaser check
  • only configurations files on  version: 2  are supported, yours is  version: 0 , please update your configuration

The release workflow failed at v1.1.0.

https://github.com/bufbuild/protoc-gen-validate/releases/tag/v1.1.0

https://github.com/bufbuild/protoc-gen-validate/actions/runs/10252222901/job/28362117064

```
/opt/hostedtoolcache/goreleaser-action/2.1.0/x64/goreleaser release --rm-dist
  ⨯ command failed                                   error=unknown flag: --rm-dist
Error: The process '/opt/hostedtoolcache/goreleaser-action/2.1.0/x64/goreleaser' failed with exit code 1
```

--rm-dist was deprecated.

https://goreleaser.com/deprecations/#-rm-dist

Furthermore, we need to add `version: 2`.

```console
$ goreleaser check
  • only configurations files on  version: 2  are supported, yours is  version: 0 , please update your configuration
```
@CLAassistant
Copy link

CLAassistant commented Aug 5, 2024

CLA assistant check
All committers have signed the CLA.

@suzuki-shunsuke suzuki-shunsuke marked this pull request as ready for review August 5, 2024 21:46
@rodaine rodaine changed the title ci: fix the failure of goreleaser CI: fix the failure of goreleaser Aug 5, 2024
@rodaine rodaine merged commit e4899f2 into bufbuild:main Aug 12, 2024
@rodaine
Copy link
Member

rodaine commented Aug 12, 2024

Thanks @suzuki-shunsuke!

@suzuki-shunsuke suzuki-shunsuke deleted the ci-fix-goreleaser-v2 branch August 12, 2024 20:55
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