Skip to content

Update module github.com/testcontainers/testcontainers-go to v0.36.0 #405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 27, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/testcontainers/testcontainers-go v0.35.0 -> v0.36.0 age adoption passing confidence

Release Notes

testcontainers/testcontainers-go (github.com/testcontainers/testcontainers-go)

v0.36.0

Compare Source

What's Changed

⚠️ Breaking Changes

  • feat(azure)!: add Azurite, EventHubs and ServiceBus in the new Azure module, deprecating the old Azurite module (#​3008) @​mdelapenya

Users of the old Azurite module must update their code to use the new Azure module instead, which contains the same functionality under the azurite sub-package.
We took this opportunity to remove the unnecessarily exported Settings field from the Azurite container type,
so users of the Azurite container type must update their code to simply do not use that field.

  • chore(deps)!: bump github.com/docker/docker from 27.1.1+incompatible to 28.0.1+incompatible (#​3017) @​dependabot[bot]

Bumping the Docker package to a newer major version came with lots of benefits, but also some breaking changes. For that reason, users of the following
container methods and types must update their code to use the new types and methods instead:

  • Container.Inspect: the return type has been changed from types.ContainerJSON to container.InspectResponse.
  • Container.State: the return type has been changed from types.ContainerState to container.State.
  • DockerProvider.ContainerFromType: the method signature has been changed to accept a container.Summary instead of a types.Container.
    At the same time, if consuming Docker types or methods, users must update their code to use the new types and methods instead.
    As a good rule of thumb, users of the "github.com/docker/docker/api/types" package must update their code to use "github.com/docker/docker/api/types/container" instead.

Users of the deprecated DockerCompose type from the compose module must update their code to use DockerComposer instead.
The former unexported dockerCompose type has been renamed to DockerCompose. This breaking change was done because returning
an un-exported type from a constructor function limits the flexibility and usability of the returned instance. Callers could use
the exported methods, but could not declare variables of that type, pass instances to other functions, or embed them in structs
without exposing the constructor itself. This breaking change was needed to improve the usability of the compose module.

Users of the testcontainers.Logging variable must update their code to use the new log.Default() logger instance instead, and
users of the testcontainers.Logger interface must update their code to use the new log.Logger interface instead.
The new log package allows users to set a custom logger instance calling the log.SetDefault(l log.Logger) function.
This breaking change was needed to improve the usability of the logging functionality when using the testcontainers package.

Users of the NATS module and the ConnectionString type must remove the variadic arguments from the ConnectionString method. This breaking change was needed because those arguments weren't in use.

We fixed a typo in the exported field of the ContainerRequest struct, so users of the EnpointSettingsModifier type must update their code to use the EndpointSettingsModifier type instead.

🔒 Security

🚀 Features

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

📦 Dependency updates


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Mar 27, 2025
@renovate renovate bot requested a review from a team as a code owner March 27, 2025 16:44
@renovate renovate bot added the go Pull requests that update Go code label Mar 27, 2025
@renovate renovate bot enabled auto-merge (squash) March 27, 2025 16:44
Copy link
Contributor Author

renovate bot commented Mar 27, 2025

ℹ Artifact update notice

File name: tests/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 5 additional dependencies were updated

Details:

Package Change
dario.cat/mergo v1.0.0 -> v1.0.1
github.com/docker/docker v27.1.1+incompatible -> v28.0.1+incompatible
github.com/magiconair/properties v1.8.7 -> v1.8.9
github.com/opencontainers/image-spec v1.1.0 -> v1.1.1
github.com/yusufpapurcu/wmi v1.2.3 -> v1.2.4

@renovate renovate bot force-pushed the renovate/testcontainers-go-monorepo branch 2 times, most recently from e3288ba to 3559d7d Compare April 2, 2025 11:01
@renovate renovate bot force-pushed the renovate/testcontainers-go-monorepo branch 4 times, most recently from e7e2a78 to 54261b1 Compare April 3, 2025 23:36
| datasource | package                                     | from    | to      |
| ---------- | ------------------------------------------- | ------- | ------- |
| go         | github.com/testcontainers/testcontainers-go | v0.35.0 | v0.36.0 |


Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate bot force-pushed the renovate/testcontainers-go-monorepo branch from 54261b1 to d519bf0 Compare April 4, 2025 02:42
@renovate renovate bot merged commit 89e37a9 into main Apr 4, 2025
15 checks passed
@renovate renovate bot deleted the renovate/testcontainers-go-monorepo branch April 4, 2025 02:44
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.

1 participant