Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix goreleaser-action #667

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Conversation

gigerdo
Copy link
Member

@gigerdo gigerdo commented Sep 27, 2024

The release github action is currently broken:

We were using the latest gorelease-action, which had changed from 1->2 recently. The main breaking change for us was that --rm-dist flag was replaced by --clean

But this change causes some other changes:

  • Some smaller changes in the goreleaser config
  • To run the newest goreleaser, we have to upgrade to golang 1.23.0
  • When using go 1.23.0, golangci-lint also needs upgrading
  • golanci-lint on the new version also has some config deprecations/changes

But with all these changes, the local build/lint runs without errors or warnings and the dry-run gorelease also runs through (hopefully the same is the case in the github action).

@gigerdo gigerdo marked this pull request as ready for review September 27, 2024 12:53
@gigerdo gigerdo requested a review from a team as a code owner September 27, 2024 12:53
@gigerdo gigerdo force-pushed the fix-goreleaser-action branch from 43a0520 to 64bc25b Compare September 27, 2024 13:03
@gigerdo gigerdo marked this pull request as draft September 27, 2024 13:09
@gigerdo gigerdo removed the request for review from a team September 27, 2024 13:09
@gigerdo gigerdo force-pushed the fix-goreleaser-action branch from 64bc25b to 499fa7d Compare September 27, 2024 13:11
We were using the 'latest' gorelease-action, which had changed from 1->2 recently. The --rm-dist flag was replaced by --clean

Change the config to continue using v1. We can eventually upgrade to v2, but we also need to update golang to 1.23.0 first.
@gigerdo gigerdo force-pushed the fix-goreleaser-action branch from 499fa7d to 1e00dd2 Compare September 27, 2024 13:26
@gigerdo gigerdo marked this pull request as ready for review September 27, 2024 13:29
@gigerdo gigerdo requested a review from a team September 27, 2024 14:04
Copy link
Contributor

@claudia-correia claudia-correia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@gigerdo gigerdo merged commit abe3883 into elastic:master Sep 27, 2024
3 checks passed
@gigerdo gigerdo deleted the fix-goreleaser-action branch September 27, 2024 15:23
claudia-correia pushed a commit to claudia-correia/ecctl that referenced this pull request Nov 18, 2024
The release github action is currently broken:

We were using the `latest` gorelease-action, which had changed from 1->2 recently. The main breaking change for us was that `--rm-dist` flag was replaced by `--clean`

But this change causes some other changes:
- Some smaller changes in the goreleaser config
- To run the newest goreleaser, we have to upgrade to golang 1.23.0
- When using go 1.23.0, golangci-lint also needs upgrading
- golanci-lint on the new version also has some config deprecations/changes 

But with all these changes, the local build/lint runs without errors or warnings and the dry-run gorelease also runs through (hopefully the same is the case in the github action).
claudia-correia added a commit that referenced this pull request Nov 18, 2024
The release github action is currently broken:

We were using the `latest` gorelease-action, which had changed from 1->2 recently. The main breaking change for us was that `--rm-dist` flag was replaced by `--clean`

But this change causes some other changes:
- Some smaller changes in the goreleaser config
- To run the newest goreleaser, we have to upgrade to golang 1.23.0
- When using go 1.23.0, golangci-lint also needs upgrading
- golanci-lint on the new version also has some config deprecations/changes 

But with all these changes, the local build/lint runs without errors or warnings and the dry-run gorelease also runs through (hopefully the same is the case in the github action).

Co-authored-by: Dominik Giger <[email protected]>
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.

2 participants