Skip to content

Commit 47b0c07

Browse files
fix: set GOTOOLCHAIN=auto to handle patch version gaps
1 parent 22e0d85 commit 47b0c07

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# go-sqlcmd Development Container
2-
# The Go major version here must satisfy the 'go' directive in go.mod.
3-
# The base image sets GOTOOLCHAIN=local, so no Go toolchain is downloaded at
4-
# runtime — update this tag when go.mod's minimum Go version changes.
2+
# The Go major.minor version here must match the 'go' directive in go.mod.
3+
# GOTOOLCHAIN=auto lets Go download the exact patch version (e.g. 1.25.9)
4+
# when the base image is slightly behind. Downloads are verified against
5+
# sum.golang.org.
56
FROM mcr.microsoft.com/devcontainers/go:1.25-bookworm
7+
ENV GOTOOLCHAIN=auto
68

79
# Install additional OS packages
810
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \

0 commit comments

Comments
 (0)