feat: support using go_install or go_build if the asset for the platform isn't released in GitHub Releases #2317
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Close #2132
Features
This pull request adds a new field
build
to Registry settings.This enables to install packages by
go_install
orgo_build
on platforms where prebuilt binaries aren't published.Example
This is an example usage of the new field
build
.supported_envs
islinux
because prebuilt binaries are published only for linux.On platforms other than
supported_envs
, aqua installs tfcmt bygo_build
.go_install
is also available.If
go_build
failed on windows/arm64 and we'd like to exclude windows/arm64,excluded_envs
is available.If we'd like to disable
build
in version_overrides,enabled
is available.Why not
overrides
?Of course, we can do the same thing with
overrides
.This example has only one element in
overrides
, but ifoverrides
has multiple elements,build
makes the code simpler.And
build
makes the intension clearer.