Skip to content

[gomod] Bump github.com/testcontainers/testcontainers-go from 0.44.0 to 0.45.0 - #96

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/testcontainers/testcontainers-go-0.45.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/testcontainers/testcontainers-go-0.45.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 13, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/testcontainers/testcontainers-go from 0.44.0 to 0.45.0.

Release notes

Sourced from github.com/testcontainers/testcontainers-go's releases.

v0.45.0

What's Changed

⚠️ Breaking Changes

Client SDK dependencies have moved into separate examples modules. For CockroachDB, ConnectionConfig is now available through cockroachdbexamples.NewContainer(c) in modules/cockroachdb/examples. The parent’s ConnectionString and MustConnectionString now return PostgreSQL URLs instead of registered pgx handles, and importing the parent no longer registers the pgx SQL driver. Use the examples adapter to retain the previous SDK behavior, or configure the driver yourself.

For Dex, AddClient, RemoveClient, AddUser, and RemoveUser have moved from *dex.Container to dexexamples.NewAdminClient(c) in modules/dex/examples. Static configuration through WithClient and WithUser is unchanged.

For Cosmos DB, ContainerPolicy and NewContainerPolicy have moved from modules/azure/cosmosdb to modules/azure/examples/cosmosdb. Update the adapter import; its constructor still accepts the parent container. Run, Container, and ConnectionString remain unchanged in the parent module.

🔒 Security

🚀 Features

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

... (truncated)

Commits
  • b4fe821 chore: use new version (v0.45.0) in modules and examples
  • d40be72 chore(deps): bump github.com/go-jose/go-jose/v4 in /modules/dex/examples (#4088)
  • 0d12cc6 chore(modules): finish test client isolation and document examples modules (#...
  • 9cc89fd chore(modules): isolate eight remaining compatible client SDKs (#4086)
  • 9ec5407 chore(modules)!: extract CockroachDB and Dex client adapters (#4087)
  • 5c9480f chore(modules): isolate client examples across eleven more modules (#4084)
  • 6aaef66 fix(ci): initialize sbx network policy before tests (#4085)
  • 55f58fe chore(modules): isolate client examples across eleven modules (#4083)
  • ea5a2e8 chore(deps): bump go.mongodb.org/mongo-driver (#4075)
  • 60b08c4 docs: show cumulative clones and unique cloners (#4082)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/testcontainers/testcontainers-go](https://github.com/testcontainers/testcontainers-go) from 0.44.0 to 0.45.0.
- [Release notes](https://github.com/testcontainers/testcontainers-go/releases)
- [Commits](testcontainers/testcontainers-go@v0.44.0...v0.45.0)

---
updated-dependencies:
- dependency-name: github.com/testcontainers/testcontainers-go
  dependency-version: 0.45.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 13, 2026

@ecosquad-autoreview ecosquad-autoreview Bot 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.

Summary

Dependabot-style bump of github.com/testcontainers/testcontainers-go from v0.44.0 → v0.45.0, touching only go.mod and go.sum. No application source is changed. The v0.45.0 release notes call out breaking changes, but they are all scoped to the CockroachDB, Dex, and Cosmos DB example adapters (modules/*/examples) — none of which this repo imports. This repo only uses the modules/postgres module (tests/main_test.go), whose API (postgres.Run, WithInitScripts, WithDatabase, WithUsername, WithPassword, MappedPort, TerminateContainer, wait.ForLog) is unchanged. So the bump itself is safe for the code as written.

Findings

Warning — Inconsistent testcontainers version split (go.mod, lines 19–20)

github.com/testcontainers/testcontainers-go v0.45.0
github.com/testcontainers/testcontainers-go/modules/postgres v0.44.0

The core library was bumped to v0.45.0 but the directly-depended modules/postgres module was left at v0.44.0. The v0.45.0 release is cut as a single version across the whole repo ("chore: use new version (v0.45.0) in modules and examples"), so modules/postgres v0.45.0 exists and is the intended companion.

Why it matters:

  • The two halves of the same testcontainers ecosystem are pinned to different releases. Go's MVS will build modules/postgres v0.44.0 against core v0.45.0, which in practice compiles (the core API is backward compatible), but this is fragile and defeats the point of the bump — you're not actually on a coherent v0.45.0 stack.
  • A partial bump like this is easy to accidentally leave in place, and it muddies future "what version are we on" answers.

Fix: bump the module to match the core, i.e. change line 20 to
github.com/testcontainers/testcontainers-go/modules/postgres v0.45.0
and run go mod tidy to refresh go.sum.

Note — CI not yet green (build / go-test / go-test-acc still queued)

The build, go-test, go-test-acc, and ent-codegen jobs were still queued at review time (only GitGuardian is green and CodeQL is neutral/broken-config). Because the change is dependency-only, the real verification is that the test build compiles and the container-based suite passes. Please confirm these jobs go green before merging; if the version split above causes any compile friction, bumping modules/postgres to v0.45.0 should resolve it.

Verdict

No correctness, security, or data-loss issues — the change is test-only and the relevant postgres API is unchanged in v0.45.0. The only real concern is the inconsistent core/module version split, which is a consistency fix rather than a blocker. Approving with the recommendation to bump modules/postgres to v0.45.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants