Skip to content

fix(build): require Go 1.27.3 - #248

Merged
mdelapenya merged 3 commits into
testcontainers:mainfrom
mdelapenya:chore/require-go-1.27.3
Oct 21, 2026
Merged

mdelapenya merged 3 commits into
testcontainers:mainfrom
mdelapenya:chore/require-go-1.27.3

Conversation

@mdelapenya

Copy link
Copy Markdown
Member

🤖 Automated implementer agent — this comment was posted by the implementer bot from AI Factory, not by a human developer

Mirrors docker/clipboardbridge#7: require Go 1.27.3 so CI and future releases compile with the crypto/x509 security update.

  • go.mod: go 1.23.9 → go 1.27.3. The CI workflows use go-version-file: go.mod, so they follow automatically.
  • linux/Dockerfile / windows/Dockerfile: build stage bumped to golang:1.27-alpine3.23 / golang:1.27-nanoserver (no 1.27-alpine3.22 tag exists), so image builds don't rely on toolchain auto-download.

Verification (go1.27.3): go mod tidy (no changes), go vet ./..., go build ./..., go test ./... all pass. Docker images were not built locally.

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 37e1cc70-3903-47f8-9209-0559cc47020f
📥 Commits

Reviewing files that changed from the base of the PR and between 84f4ff0 and db8816a.

📒 Files selected for processing: 7
  • .github/workflows/golangci-lint.yml
  • .golangci.yaml
  • config_test.go
  • go.mod
  • linux/Dockerfile
  • reaper_test.go
  • windows/Dockerfile
+--------------------------------------------+
| Forcing bugs to surrender unconditionally. |
+--------------------------------------------+
  \
   \     /)/)
        ( '')
        /  |
      o(___)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mdelapenya mdelapenya self-assigned this Oct 21, 2026
@mdelapenya
mdelapenya requested a balanced review from Copilot October 21, 2026 09:52
@mdelapenya mdelapenya added the security Vulnerabilities in dependencies or in the project itself label Oct 21, 2026
@mdelapenya
mdelapenya marked this pull request as ready for review October 21, 2026 09:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Cross-platform Docker builds and updated linter compatibility remain unverified and need confirmation.

No open issues 🎉

What changed in this PR

Raises the project’s Go requirement to 1.27.3 to target the crypto/x509 security update and align build tooling.

Changes:

  • Updates the minimum Go version and Linux/Windows builder images.
  • Makes lint CI read the Go version from go.mod and updates linter configuration.
  • Simplifies test helpers using newer standard-library APIs.
File Description
windows/​Dockerfile Updates the builder to Go 1.27 Nano Server.
reaper_test.go Uses slog.DiscardHandler for discarded logs.
linux/​Dockerfile Updates the builder to Go 1.27 on Alpine 3.23.
go.mod Requires Go 1.27.3.
config_test.go Uses reflect.Type.Fields() for field iteration.
.golangci.yaml Disables exhaustruct_v5.
.github/​workflows/​golangci-lint.yml Selects Go using go.mod.

Review effort: Balanced

@mdelapenya
mdelapenya merged commit 0509b37 into testcontainers:main Oct 21, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security Vulnerabilities in dependencies or in the project itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants