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

goreleaser not working #335

Closed
2 tasks done
dikhan opened this issue Apr 9, 2022 · 0 comments · Fixed by #333
Closed
2 tasks done

goreleaser not working #335

dikhan opened this issue Apr 9, 2022 · 0 comments · Fixed by #333
Assignees
Labels

Comments

@dikhan
Copy link
Owner

dikhan commented Apr 9, 2022

Describe the bug

The CI build pipeline currently relies on goreleaser lates which at the time of writing is v1.7.0 and requires go 1.18.

Example of pipeline failing due to this bug: https://app.travis-ci.com/github/dikhan/terraform-provider-openapi/builds/249182084

To Reproduce

Steps to reproduce the behavior:

  1. Travis CI pipeline step runs: go install github.com/goreleaser/goreleaser@latest
  2. The code will fail with the following error:
# github.com/goreleaser/goreleaser/pkg/context
../../../../pkg/mod/github.com/goreleaser/goreleaser@v1.7.0/pkg/context/context.go:151:15: undefined: strings.Cut
note: module requires Go 1.18

Expected behaviour

goreleaser is pinned to a previous version v1.6.3 that does not required Go 1.18 and the pipeline is able to release code just fine.

Additional context

Add any other context about the problem here.

Checklist (for admin only)

Don't forget to go through the checklist to make sure the issue is created properly:

  • I have added a corresponding label (bug) to the issue (right side menu)
  • I have added this issue to the 'API Terraform Provider' GitHub project (right side menu)
@dikhan dikhan added the bug label Apr 9, 2022
@dikhan dikhan self-assigned this Apr 9, 2022
dikhan added a commit that referenced this issue Apr 9, 2022
[BugFix: Issue #335] goreleaser latest version (1.7) introduced breaking changes requiring Go1.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant