Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.
This repository was 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

Description

@sergei-ivanov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions