Skip to content

update Go to 1.27 - #14486

Merged
glours merged 1 commit into
docker:mainfrom
thaJeztah:bump_go127
Nov 10, 2026
Merged

glours merged 1 commit into
docker:mainfrom
thaJeztah:bump_go127

Conversation

@thaJeztah

@thaJeztah thaJeztah commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Go 1.27 makes SystemCertPool respect SSL_CERT_FILE and SSL_CERT_DIR on Windows and macOS, switching to Go's certificate verifier when either variable is set.

Update to align certificate environment variable handling across our CLI binaries, avoiding differences based on the Go version used to build them.

See: https://go.dev/doc/go1.27#crypto/x509

What this PR does

Related issue

Fixes #

Changes made

Testing done

  • Unit tests pass: make test
  • E2E tests pass: make e2e-compose or make e2e-compose-standalone
  • Linting passes: make lint
  • Code formatted: make fmt
  • Manually tested (describe):

AI tool used (if applicable)

AI Tool:

Additional context

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@thaJeztah
thaJeztah requested review from a team as code owners November 10, 2026 10:07
@thaJeztah
thaJeztah requested review from glours and ndeloof November 10, 2026 10:07
@thaJeztah

Copy link
Copy Markdown
Member Author

go 1.26.10

Hm... looks like secrets engine is still forcing non-zero patch releases; we should fix that;

go list -mod=mod -m -f '{{if not .Main}}{{.GoVersion}} {{.Path}} {{.Version}}{{end}}' all \
                                              | awk '$1 ~ /^1[.]26[.][0-9]+$/ && $1 != "1.26.0"' \
                                              | sort -Vr

1.26.10 github.com/docker/secrets-engine/x v0.8.5
1.26.10 github.com/docker/secrets-engine/client v0.2.2
1.26.8 github.com/moby/buildkit v0.33.1
1.26.6 github.com/containerd/containerd/v2 v2.4.2
1.26.3 github.com/Microsoft/hcsshim v0.15.0-rc.4

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

@thaJeztah

Copy link
Copy Markdown
Member Author

Needs an update of golangci-lint;

#17 [lint 1/1] RUN --mount=type=bind,target=.     --mount=type=cache,target=/root/.cache     --mount=type=cache,target=/go/pkg/mod     --mount=type=cache,target=/cache/golangci-lint     --mount=from=golangci-lint,source=/usr/bin/golangci-lint,target=/usr/bin/golangci-lint     golangci-lint run ./...
#17 6.605 main.go:33:2: could not import errors (/usr/local/goerrors/wrap.go:8:2: could not import internal/reflectlite (/usr/local/gointernal/reflectlite/swapper.go:8:2: could not import internal/goarch (-: could not load export data: internal error in importing "internal/goarch" (cannot decode "internal/goarch", export data version 5 is greater than maximum supported version 4); please report an issue))) (typecheck)
#17 6.605 	"errors"
#17 6.605 	^

@codecov

codecov Bot commented Nov 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@glours

glours commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

@thaJeztah you can rebase it on top of main PR #14487 has been merged 👍

Go 1.27 makes SystemCertPool respect SSL_CERT_FILE and SSL_CERT_DIR on
Windows and macOS, switching to Go's certificate verifier when either
variable is set.

Update to align certificate environment variable handling across our CLI
binaries, avoiding differences based on the Go version used to build them.

See: https://go.dev/doc/go1.27#crypto/x509

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
thaJeztah marked this pull request as ready for review November 10, 2026 10:54
@thaJeztah

Copy link
Copy Markdown
Member Author

@glours rebased and un-drafted 👍

@glours
glours enabled auto-merge (rebase) November 10, 2026 10:55

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

@glours
glours merged commit 10d6169 into docker:main Nov 10, 2026
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants