Managing image versions in Testcontainers modules #1275
HofmeisterAn
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
You know, I am in favor of requiring being explicit about the version, since the implicit default version tends to lead to all kind of weird assumptions and expectations down the line 😉 In an ideal world, the module could be even more explicit about supported version ranges, but even with this design, I believe it is a better DX if users need to be explicit with the used version for most TC use cases. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey 👋 I've noticed quite a few PRs that update the image version of modules. This is something we usually try to avoid because we don't want to introduce breaking changes or cause developers to run into issues when updating the Testcontainers version. Like with all dependencies, it’s recommended to pin the version to avoid unexpected issues and to consciously update a version of a dependent service.
The idea behind having a default version was to provide a simple starting point for developers so they don’t have to immediately search through registries for the right and compatible image. Other Testcontainers language versions treat this differently, they require the image as a constructor argument from the start, e.g.:
Do you think we should introduce something similar in .NET as well?
Beta Was this translation helpful? Give feedback.
All reactions