chore: update go version to enable darwin/arm64 (m1) support #787
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Archive from @bflad
You may have noticed that Go 1.16 released yesterday and includes support for the new Apple M1 (“silicon”) hardware via a new release platform: darwin/arm64. If you are using goreleaser for provider releases, allow it to use the latest goreleaser version (most common), and update the release process to use Go 1.16, it will automatically include the new platform in releases. The Terraform Registry should ingress and serve them just fine, but please note that native Terraform CLI support for darwin/arm64 can be tracked in hashicorp/terraform#27257 which will be updated with our timelines to prevent confusing errors for practitioners while the provider ecosystem starts rolling out this new platform.
One caveat to the typical goreleaser configuration for releases is that if you do not update to Go 1.16, it will still try to build on the unsupported platform (for the older Go versions). Example error:
You can choose one of these options remediate this:
Update the provider codebase and .github/workflows/release.yml to Go 1.16
Pin the goreleaser version in your .github/workflows/release.yml to v0.155.0
Ignore the new platform in .goreleaser.yml under builds