Skip to content

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Jul 24, 2025

Testing the transitional "v28.5" release, which updates the v28.x
version to migrate to the new moby/api and moby/client modules.

testing;

in this variant, buildx has not been updated, and no local changes were made to either compose or buildx. Without this transitional package, compose fails to build if other dependencies (buildx in this case) have not transitioned to the new modules;

go mod tidy
go: downloading github.com/docker/buildx v0.26.1
go: finding module for package github.com/docker/docker/api/types/image
go: finding module for package github.com/docker/docker/client
go: finding module for package github.com/docker/docker/api/types/mount
go: finding module for package github.com/docker/docker/api/types/container
go: finding module for package github.com/docker/docker/api/types/network
go: finding module for package github.com/docker/docker/api/types/system
go: downloading github.com/docker/docker/api v0.0.0-20250724011546-fcb916ad1731
go: downloading github.com/docker/docker/client v0.0.0-20250724011546-fcb916ad1731
go: found github.com/docker/docker/api/types/image in github.com/docker/docker/api v0.0.0-20250724011546-fcb916ad1731
go: found github.com/docker/docker/client in github.com/docker/docker/client v0.0.0-20250724011546-fcb916ad1731
go: found github.com/docker/docker/api/types/container in github.com/docker/docker/api v0.0.0-20250724011546-fcb916ad1731
go: found github.com/docker/docker/api/types/mount in github.com/docker/docker/api v0.0.0-20250724011546-fcb916ad1731
go: found github.com/docker/docker/api/types/network in github.com/docker/docker/api v0.0.0-20250724011546-fcb916ad1731
go: found github.com/docker/docker/api/types/system in github.com/docker/docker/api v0.0.0-20250724011546-fcb916ad1731
go: github.com/docker/compose/v2/pkg/compose imports
        github.com/docker/buildx/build imports
        github.com/docker/docker/api/types/image: github.com/docker/docker/[email protected]: parsing go.mod:
        module declares its path as: github.com/moby/moby/api
                but was required as: github.com/docker/docker/api

This variant aliases the old API package to the new module, so the API package only contains aliases (except for some things that should be pinned);

tree vendor/github.com/docker/docker/api
vendor/github.com/docker/docker/api
├── README.md
├── common.go
├── swagger-gen.yaml
├── swagger.yaml
└── types
    ├── aliases.go
    ├── auxprogress
    │   └── aliases.go
    ├── blkiodev
    │   └── aliases.go
    ├── build
    │   └── aliases.go
    ├── checkpoint
    │   └── aliases.go
    ├── common
    │   └── aliases.go
    ├── container
    │   └── aliases.go
    ├── events
    │   └── aliases.go
    ├── filters
    │   └── aliases.go
    ├── image
    │   └── aliases.go
    ├── mount
    │   └── aliases.go
    ├── network
    │   └── aliases.go
    ├── registry
    │   └── aliases.go
    ├── swarm
    │   └── aliases.go
    ├── system
    │   └── aliases.go
    ├── time
    │   └── aliases.go
    ├── types_deprecated.go
    ├── versions
    │   └── aliases.go
    └── volume
        └── aliases.go

Under the hood, it's already using the new module (github.com/moby/moby/api);

tree -d vendor/github.com/moby/moby/api
vendor/github.com/moby/moby/api
├── stdcopy
└── types
    ├── auxprogress
    ├── blkiodev
    ├── build
    ├── checkpoint
    ├── common
    ├── container
    ├── events
    ├── filters
    ├── image
    ├── mount
    ├── network
    ├── registry
    ├── storage
    ├── strslice
    ├── swarm
    │   └── runtime
    ├── system
    ├── time
    ├── versions
    └── volume

(I'm using vendoring purely to show / illustrate what's used)

What I did

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@thaJeztah thaJeztah force-pushed the use_transitional branch 2 times, most recently from 3a677c9 to 8732a2c Compare July 31, 2025 09:31
@thaJeztah thaJeztah changed the title testing transitional 28.x release with modules go.mod: bump github.com/docker/docker, docker/ci v28.4.0-dev Jul 31, 2025
@thaJeztah thaJeztah force-pushed the use_transitional branch 2 times, most recently from 7b36de6 to 1d92b9e Compare July 31, 2025 15:57
@thaJeztah thaJeztah changed the title go.mod: bump github.com/docker/docker, docker/ci v28.4.0-dev go.mod: bump github.com/docker/docker, docker/ci v28.5.0-dev Aug 20, 2025
@thaJeztah thaJeztah force-pushed the use_transitional branch 5 times, most recently from 3277735 to 97ac679 Compare September 1, 2025 11:31
Testing the transitional "v28.5" release, which updates the v28.x
version to migrate to the new moby/api and moby/client modules.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant