Skip to main content

supported_envs

#882 #884

aqua >= v1.12.0

You can specify the list of supported environments (GOOS and GOARCH) in supported_envs.

supported_envs has been introduced to solve the following supported_if problems.

  1. Complicated. There are multiple ways to express the same environments. The expression is too flexible
  2. Performance. aqua has to compile and evaluate the expression per tool. It may affect the performance although we should do the performance test

Example Code

AS IS

packages:
- type: github_release
repo_owner: gruntwork-io
repo_name: terragrunt
asset: terragrunt_{{.OS}}_{{.Arch}}
supported_if: not (GOOS == "windows" and GOARCH == "arm64")

TO BE

packages:
- type: github_release
repo_owner: gruntwork-io
repo_name: terragrunt
asset: terragrunt_{{.OS}}_{{.Arch}}
supported_envs:
- windows/amd64
- darwin
- linux

The following patterns are supported.

  • <GOOS>
  • <GOOS>/<GOARCH>
supported_envs: [] # no environment is supported
supported_envs: ["all"] # all environments are supported