-
-
Notifications
You must be signed in to change notification settings - Fork 515
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]: invalid docker dependency #2256
Comments
Update: this may be a personal problem 😳 |
yeah this was a config issue |
same err I met, and solution: |
@zyongq what version of testcontainers-go are you using? I'd say this issue is no longer reproducible and there is no need to replace the docker dependency. Could you please confirm? |
After commenting out the replace directive in go.mod, it worked immediately. |
So the replace directive is not present in the file, right? Then this is how it should be. If not, could you share an example repository where we can take a look? If this is still happening we should reopen this issue |
Yes, the replace directive is commented out and everything works correctly now. |
Thanks for your confirmation 🙇 Happy to help in any other case |
Thanks! Testcontainers is a great project - really appreciate the team's work on making testing with containers so seamless. 👍 |
Testcontainers version
v0.28.0
Using the latest Testcontainers version?
Yes
Host OS
MacOS Darwin
Host arch
ARM64
Go version
1.21
Docker version
Client: Cloud integration: v1.0.35+desktop.4 Version: 24.0.6 API version: 1.43 Go version: go1.20.7 Git commit: ed223bc Built: Mon Sep 4 12:28:49 2023 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.23.0 (120376) Engine: Version: 24.0.6 API version: 1.43 (minimum version 1.12) Go version: go1.20.7 Git commit: 1a79695 Built: Mon Sep 4 12:31:36 2023 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.22 GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca runc: Version: 1.1.8 GitCommit: v1.1.8-0-g82f18fe docker-init: Version: 0.19.0 GitCommit: de40ad0
Docker info
What happened?
Issue
Running
go mod tidy
orgo get
fails on a transitive dependency found intestcontainters-go
.Actions Taken
Ran
go mod tidy
andgo get github.com/testcontainers/[email protected]
.Expected Behavior
Go downloads and tidies
go.mod
as appropriate.Actual Behavior
Go returns the following error:
Relevant log output
Additional information
It seems like there is a repository redirect from
github.com/docker/docker
togithub.com/moby/moby
which is failing for the pathgithub.com/docker/docker/api/types/system
.The text was updated successfully, but these errors were encountered: