Skip to main content

supported_if

caution

From aqua v2.0.0, supported_if was abandoned. Please use supported_envs instead.

caution

From aqua v1.12.0 or later, we strongly recommend supported_envs instead of supported_if. supported_envs is simpler than supported_if, and better in terms of the performance.

#438 #439

Some packages are available on only the specific environment. For example, some packages are available on only Linux, or don't support Linux ARM64.

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.

For example, if the following configuration indicates the package doesn't support macOS.

supported_if: GOOS != "darwin"