fix(localstack): more reliable legacy tag detection#2936
fix(localstack): more reliable legacy tag detection#2936mdelapenya merged 2 commits intotestcontainers:mainfrom
Conversation
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
4d651db to
c8dd734
Compare
mdelapenya
left a comment
There was a problem hiding this comment.
Thanks for the contribution, added a comment regarding the non-legacy tags
|
I just noticed the |
299ea0c to
c8dd734
Compare
c8dd734 to
09e009d
Compare
mdelapenya
left a comment
There was a problem hiding this comment.
@stevenh anything to highlight here? This LGTM, thanks!
mdelapenya
left a comment
There was a problem hiding this comment.
LGTM, thanks!
Question (not a blocker at all): do you see we can take the chance to refactor both functions, isLegacyMode and isVersion2 as the code in there is practically the same? I'm approving the PR anyway, so will merge it if you don't consider it for this PR and prefer doing it in a follow-up.
Thanks again for your time 🙇
Definitely. I thought about doing this but didn't want to mess with the code too much as a new contributor. See my latest change. |
mdelapenya
left a comment
There was a problem hiding this comment.
LGTM, thanks for the refactor!
* main: (29 commits) deps(fix): include modulegen templates dir in dependabot updates (testcontainers#2956) chore(deps): bump docker/setup-docker-action from 4.0.0 to 4.1.0 (testcontainers#2959) feat: adds Pinecone module (testcontainers#2955) chore(deps): bump actions/setup-go from 5.1.0 to 5.3.0 (testcontainers#2957) chore(deps): bump actions/upload-artifact from 4.4.3 to 4.6.0 (testcontainers#2958) chore: enable unused-parameter from revive (testcontainers#2949) chore: enable use-any from revive (testcontainers#2948) bump golangci-lint to v1.63.4 (testcontainers#2950) chore: enable var-declaration from revive linter (testcontainers#2942) chore: enable context-as-argument from revive linter (testcontainers#2946) chore: enable early-return, indent-error-flow and superfluous-else from revive linter (testcontainers#2947) chore!: rename EnpointSettingsModifier to EndpointSettingsModifier fix(localstack): more reliable legacy tag detection (testcontainers#2936) chore: recover from panic in `SkipIfProviderIsNotHealthy` test helper function (testcontainers#2939) chore: fix typos (testcontainers#2940) deps(compose): bump compose (v2.32.2) and compose-go spec (v2.4.7) (testcontainers#2938) chore: prepare for next minor development cycle (0.36.0) chore: use new version (v0.35.0) in modules and examples feat(postgres): ssl for postgres (testcontainers#2473) feat(ollama): support calling the Ollama local process (testcontainers#2923) ...
What does this PR do?
Improves the internal
isLegacyModefunction to handle all tag conventions used by localstack.Why is it important?
I'm currently unable to use the much smaller
localstack/localstack:s3-latestimage tag because it's incorrectly detected as a legacy version.How to test this PR
Unit test included.