allow override go version for uses: go/build and go/install #606
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.
The go 1.21 release included breaking changes that result in breaking some go based packages. Until upstream projects support go 1.21 a melange config can pin to a specific go version, i.e.
go-1.20
.This causes a problem however as melange configs that take advantage of the reusable go pipeline are not able to specify a different go package version because the melange pipeline hardcodes latest
I'm not 100% this is the right answer but we need to be able to choose which go version is installed for melange configs that leverage the built in go pipeline, we could override the latest go version package like this...
and
An alternative is we remove the go package from the built in pipeline and update all melange configs to explicitly specify the go package using the standard environment config, i.e.
This seems to be how the ruby pipeline works as no ruby package is defined in the needs section. However that would be a breaking change so I don't think this is viable.
Any other options?