-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
[Bug]: Can not import testcontainers-go #629
Comments
Hi @kulyklev thanks for reporting this issue. I'm going to do a repro right now and will update it as soon I find anything clear. |
Thank you @mdelapenya! |
I think it could be caused by the replace directive that we introduced here: https://github.com/testcontainers/testcontainers-go/pull/476/files#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6R28 @baez90 do you think it could be affecting downstream consumers? |
I was able to reproduce the error, and it seems connected to the dependency with Docker, as I suspected in my previous comment. I fixed adding this replace instruction to the go.mod:
which directly comes from testcontainer-go (See here). I'm currently checking out how to mitigate this, if it's possible |
More on this: given the latest version Please see docker/compose#9946 (comment) @kiview I'm going to update the release notes, in the breaking changes section to explain how to proceed with consuming the latest version. |
@kulyklev I've updated the release notes: https://github.com/testcontainers/testcontainers-go/releases/tag/v0.16.0 Do you think it's descriptive enough on how to proceed ? I moved the Docker Compose feature from the "Features" section to the "Breaking Changes" one, moving the BC section to the top |
Yes, now it's better. Now I can run v0.16.0. Thanks a lot. |
Thanks for this feedback. We are aware of the issue you mention and we are working on fixing it. Since I joined the team as a full-time maintainer past summer, we are working more and more on improving the docs , which is definitively important for us as an OSS project. |
Testcontainers version
0.16.0
Using the latest Testcontainers version?
Yes
Host OS
Ubuntu 22.04.1 LTS
Host arch
x86
Go version
go1.19.2 linux/amd64
Docker version
Docker info
What happened?
I took some sample code and wanted to import dependencies with
go mod tidy
to run it, but receive error. I tried to clean modules cache withgo clean -modcache
, but it didn't help. I still have issues with import.Sample code:
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: