Skip to content

Commit

Permalink
Bump GoReleaser to the latest version (#1396)
Browse files Browse the repository at this point in the history
<!--- 
Thanks so much for your contribution! If this is your first time
contributing, please ensure that you have read the
[CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md)
documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context. -->

Fix for CI issue (see
[link](https://github.com/pulumi/pulumi-java/actions/runs/10151985320/job/28072405794)).

```
Run goreleaser/goreleaser-action@v4
Downloading https://github.com/goreleaser/goreleaser/releases/download/v2.1.0
/goreleaser_Linux_x86_64.tar.gz
Extracting GoReleaser
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/f582ad7b-fcf2-404e-abcb-7ef966cae58a -f /home/runner/work/_temp/817729b1-bd9a-4a47-8719-a2f4fb599f74
GoReleaser latest installed successfully
/opt/hostedtoolcache/goreleaser-action/2.1.0/x64/goreleaser -p 3 -f .goreleaser.yml --rm-dist --release-notes=CHANGELOG_PENDING.md
  ⨯ command failed                                   error=unknown flag: --rm-dist
Error: The process '/opt/hostedtoolcache/goreleaser-action/2.1.0/x64/goreleaser' failed with exit code 1
```

## Checklist

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [ ] I have added tests that prove my fix is effective or that my
feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [ ] I have updated the
[CHANGELOG-PENDING](https://github.com/pulumi/pulumi/blob/master/CHANGELOG_PENDING.md)
file with my change
<!--
If the change(s) in this PR is a modification of an existing call to the
Pulumi Service,
then the service should honor older versions of the CLI where this
change would not exist.
You must then bump the API version in
/pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Service API version
<!-- @pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->
  • Loading branch information
EronWright authored Jul 29, 2024
1 parent c7d7039 commit a9f86dd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-java-provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
${{ steps.go-cache-paths.outputs.go-mod }}
key: go-cache-${{ hashFiles('**/go.sum') }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: -p 3 -f .goreleaser.yml --rm-dist --release-notes=CHANGELOG_PENDING.md
args: -p 3 -f .goreleaser.yml --clean --release-notes=CHANGELOG_PENDING.md
25 changes: 13 additions & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
builds:

- binary: pulumi-language-java
Expand All @@ -8,15 +9,15 @@ builds:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- darwin
- windows
- linux
- darwin
- windows
- linux
goarch:
- amd64
- arm64
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- -X github.com/pulumi/pulumi-java/pkg/version.Version={{.Tag}}
- -X github.com/pulumi/pulumi-java/pkg/version.Version={{.Tag}}

- binary: pulumi-java-gen
id: pulumi-java-gen
Expand All @@ -26,15 +27,15 @@ builds:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- darwin
- windows
- linux
- darwin
- windows
- linux
goarch:
- amd64
- arm64
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- -X github.com/pulumi/pulumi-java/pkg/version.Version={{.Tag}}
- -X github.com/pulumi/pulumi-java/pkg/version.Version={{.Tag}}

archives:
- name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
Expand Down

0 comments on commit a9f86dd

Please sign in to comment.