-
Notifications
You must be signed in to change notification settings - Fork 5.5k
WIP: migrate to moby modules #13078
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
base: main
Are you sure you want to change the base?
WIP: migrate to moby modules #13078
Conversation
a5b199b
to
73bb946
Compare
Nice to see moby API as a dedicated module, so we don't get transitive dependencies from engine inside Compose ! ❤️ |
cmd/compose/bridge.go
Outdated
@@ -23,9 +23,9 @@ import ( | |||
|
|||
"github.com/distribution/reference" | |||
"github.com/docker/cli/cli/command" | |||
"github.com/docker/docker/api/types/image" | |||
"github.com/docker/docker/pkg/stringid" | |||
stringid "github.com/docker/cli/cli/command/formatter" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still some places where stringid is used (will open a PR to remove one)
@@ -0,0 +1,89 @@ | |||
// Package urlutil provides helper function to check if a given build-context |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this fork temporarily; didn't realise compose itself also uses it (not only through cli); the CLI fork is "internal", so probably needs to made public, or we keep a fork here 😞
Remaining uses of docker/docker;
|
Build failure looks like it may be an incompatible change in buildx itself?
|
OK, it's because buildx depends on an unreleased version of BuildKit, so go modules considers it to be older than the latest release and won't update; https://github.com/docker/buildx/blob/3f4bf829d8c5b92a8f670609417d9aa4c0b6be98/go.mod#L32
|
83ca48f
to
13827c4
Compare
|
Yes, or at least the type; the utilities could be "client" - those packages are messy. Also looking at things that are in the api, but shouldn't (api/types/plugins/logdriver) |
Also included a (WIP) branch for docker/cli#6202 Before/After; Before:
After:
|
d2146d4
to
3a7124d
Compare
3b1ec4c
to
6cd56af
Compare
Down to two packages; both possibly candidates for
CLI still needs sorting out;
|
…ha.0 Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
6cd56af
to
8925b9c
Compare
What I did
Related issue
(not mandatory) A picture of a cute animal, if possible in relation to what you did