Skip to content

Conversation

vvoland
Copy link
Contributor

@vvoland vvoland commented Jul 8, 2025

The same env-var is used for action/setup-go as for overriding the default Go version in Dockerfiles, however action/setup-go only accepts SemVer (e.g. 1.25.0-rc.1) whereas the official golang image follows the Go project's versioning, which doesn't use a SemVer-compatible format (go1.25rc1 / 1.25rc1).

Trying to use the same "GO_VERSION" value for both will therefore fail.

As we're already updating the default version in the Dockerfile to the version we want to use, let's remove the --build-arg, and use the default that's set in the Dockerfile.

- Human readable description for the release notes

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

The same env-var is used for action/setup-go as for overriding
the default Go version in Dockerfiles, however action/setup-go
only accepts SemVer (e.g. 1.25.0-rc.1) whereas the official golang
image follows the Go project's versioning, which doesn't use
a SemVer-compatible format (go1.25rc1 / 1.25rc1).

Trying to use the same "GO_VERSION" value for both will therefore
fail.

As we're already updating the default version in the Dockerfile to
the version we want to use, let's remove the --build-arg, and use
the default that's set in the Dockerfile.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit fa4f3c9)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
@vvoland vvoland added this to the 28.3.2 milestone Jul 8, 2025
@vvoland vvoland self-assigned this Jul 8, 2025
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah merged commit d14a60f into moby:28.x Jul 8, 2025
215 of 217 checks passed
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