Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Exclude unused goos/goarch flavours from goreleaser config #91

Open
sergei-ivanov opened this issue Feb 3, 2022 · 0 comments
Open

Exclude unused goos/goarch flavours from goreleaser config #91

sergei-ivanov opened this issue Feb 3, 2022 · 0 comments

Comments

@sergei-ivanov
Copy link

Suggestion

Add explicit ignores to goreleaser config for the following flavours.

  ignore:
    - goos: darwin
      goarch: '386'
    - goos: darwin
      goarch: 'arm'
    - goos: freebsd
      goarch: 'arm64'
    - goos: windows
      goarch: 'arm'
    - goos: windows
      goarch: 'arm64'

Analysis

Currently, the suggested goreleaser configuration is as below, and go 1.17 builds almost the entire matrix. But the problem is that some of the flavours are not officially supported/endorsed by Terraform, and building them wastes resources and CI credits.

  goos:
    - freebsd
    - windows
    - linux
    - darwin
  goarch:
    - amd64
    - '386'
    - arm
    - arm64
  ignore:
    - goos: darwin
      goarch: '386'

According to the provider docs that link to this project, only the following flavours need to be built:

goos\goarch amd64 386 arm arm64
darwin x x
freebsd x x
linux x x x x
windows x x

Looking at what various providers push to Terraform registry, it's the same matrix, but with one addition: freebsd_arm.
For example, here and here. Hence the suggested list of explicit ignores to align with the current state.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant