Skip to content

gha: buildkit: make sure expected Go version is installed#48615

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:fix_buildkit_go_version
Oct 10, 2024
Merged

gha: buildkit: make sure expected Go version is installed#48615
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:fix_buildkit_go_version

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

The buildkit workflow uses Go to determine the version of Buildkit to run integration-tests for. It currently uses on the default version that's installed on the GitHub actions runners (1.21.13 currently), but this fails if the go.mod/vendor.mod specify a higher version of Go as required version.

If this fails, the BUILDKIT_REF and REPO env-vars are not set / empty, resulting in the workflow checking out the current (moby) repository instead of buildkit, which fails.

This patch adds a step to explicitly install the expected version of Go.

- A picture of a cute animal (not mandatory but encouraged)

The buildkit workflow uses Go to determine the version of Buildkit to run
integration-tests for. It currently uses on the default version that's
installed on the GitHub actions runners (1.21.13 currently), but this fails
if the go.mod/vendor.mod specify a higher version of Go as required version.

If this fails, the BUILDKIT_REF and REPO env-vars are not set / empty,
resulting in the workflow checking out the current (moby) repository instead
of buildkit, which fails.

This patch adds a step to explicitly install the expected version of Go.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the fix_buildkit_go_version branch from ce8dd11 to 02d4fc3 Compare October 9, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants