Uh oh!
There was an error while loading. Please reload this page.
migrate to moby modules - #13078
Conversation
a5b199b to
73bb946Comparendeloof
commented
Jul 21, 2025
Nice to see moby API as a dedicated module, so we don't get transitive dependencies from engine inside Compose ! ❤️ |
Uh oh!
There was an error while loading. Please reload this page.
| @@ -0,0 +1,89 @@ | |||
| // Package urlutil provides helper function to check if a given build-context | |||
There was a problem hiding this comment.
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 😞
thaJeztah
commented
Jul 21, 2025
Remaining uses of docker/docker; |
thaJeztah
commented
Jul 21, 2025
Build failure looks like it may be an incompatible change in buildx itself? |
thaJeztah
commented
Jul 21, 2025
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
13827c4Comparendeloof
commented
Jul 22, 2025
|
thaJeztah
commented
Jul 22, 2025
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) |
thaJeztah
commented
Jul 23, 2025
Also included a (WIP) branch for docker/cli#6202 Before/After; DetailsBefore: After: |
d2146d4 to
3a7124dCompare3b1ec4c to
6cd56afComparethaJeztah
commented
Aug 5, 2025
Down to two packages; both possibly candidates for CLI still needs sorting out; Details |
d7c329f to
04ac165Comparea051b5a to
5098065Compare70efab9 to
05f29edCompare| // filter out useless commandConn.CloseWrite warning message that can occur | ||
| // when using a remote context that is unreachable: "commandConn.CloseWrite: commandconn: failed to wait: signal: killed" | ||
| // https://github.com/docker/cli/blob/e1f24d3c93df6752d3c27c8d61d18260f141310c/cli/connhelper/commandconn/commandconn.go#L203-L215 | ||
| logrus.AddHook(logutil.NewFilter([]logrus.Level{ |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Uh oh!
There was an error while loading. Please reload this page.
| @@ -18,7 +18,6 @@ require ( | |||
| github.com/docker/cli v29.2.0+incompatible | |||
There was a problem hiding this comment.
Oh! Thought I had updated to v29.2.1; let me do so as well (no significant changes I think though)
Also update TestDefaultNetworkSettings: Test that the network with the highest priority is returned as "primary" network, and other networks as extra networks. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Format layer progress details with minimal efforts as new UI does not render individual layers Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Format layer progress details with minimal efforts as new UI does not render individual layers. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
glours
left a comment
There was a problem hiding this comment.
Sounds good to me, just 2 points we need to check
| func (s *composeService) pruneDanglingImagesOnRebuild(ctx context.Context, projectName string, imageNameToIdMap map[string]string) { | ||
| images, err := s.apiClient().ImageList(ctx, image.ListOptions{ | ||
| Filters: filters.NewArgs( | ||
| filters.Arg("dangling", "true"), |
There was a problem hiding this comment.
We lost the projectLabel filter, no?
There was a problem hiding this comment.
Ah, right, so it now uses projectFilter;
images, err:=s.apiClient().ImageList(ctx, client.ImageListOptions{
Filters: projectFilter(projectName).Add("dangling", "true"),
})which should add it;
compose/pkg/compose/filters.go
Lines 27 to 29 in c75e494
| containers, err := s.apiClient().ContainerList(ctx, container.ListOptions{ | ||
| All: true, | ||
| Filters: filters.NewArgs( | ||
| filters.Arg("label", fmt.Sprintf("%s=%s", api.ProjectLabel, project.Name)), |
There was a problem hiding this comment.
Same here as well, so I think we should be good 🫶
What I did
Related issue
(not mandatory) A picture of a cute animal, if possible in relation to what you did