Feature
#438 #439 Support skipping to install packages on unsupported platform
⚠️ This is the configuration in not aqua.yaml
but registry.yaml
.
Registry Configuration - supported_if
Add the field supported_if
to the Registry Configuration.
supported_if
is expr's expression.
The evaluation result must be a boolean.
If the evaluation result is false
, aqua skips installing the package and outputs the debug log.
If supported_if
isn't set, the package is always installed.
The following values and functions are accessible in the expression.
GOOS
: (type:string
) Go's runtime.GOOSGOARCH
: (type:string
) Go's runtime.GOARCH
For example, if the following configuration indicates the package doesn't support macOS.
supported_if: GOOS != "darwin"