We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec72ee2 commit a16064dCopy full SHA for a16064d
1 file changed
.github/workflows/devcontainer-check.yml
@@ -23,8 +23,10 @@ jobs:
23
GOMOD_VERSION=$(grep '^go ' go.mod | awk '{print $2}')
24
GOMOD_MAJOR_MINOR=$(echo "$GOMOD_VERSION" | grep -oE '^[0-9]+\.[0-9]+')
25
26
- # Extract the Go version from the Dockerfile base image tag
27
- DOCKERFILE_TAG=$(grep -oP 'devcontainers/go:\K[0-9]+\.[0-9]+' .devcontainer/Dockerfile)
+ # Extract the Go version from the Dockerfile base image tag.
+ # Accept both the legacy form (go:1.26-bookworm) and the variant-prefixed
28
+ # form (go:2-1.26-bookworm) published on mcr.microsoft.com.
29
+ DOCKERFILE_TAG=$(grep -oP 'devcontainers/go:(?:[0-9]+-)?\K[0-9]+\.[0-9]+' .devcontainer/Dockerfile)
30
31
echo "go.mod requires: go ${GOMOD_VERSION} (major.minor: ${GOMOD_MAJOR_MINOR})"
32
echo "Dockerfile base image: go:${DOCKERFILE_TAG}"
0 commit comments