On Sat, Jan 25, 2025 at 12:18 PM Nicolas Peugnet <nico...@club1.fr> wrote:

> On 25/01/2025 5:43 PM, Reinhard Tartler wrote:
> > that's awesome, thank you.
> >
> > Let me know when you have a package ready, I'd be happy to take a look at
> > it. Maybe we can use it in an autopkgtest for the docker.io package?
>
> It is still quite far from ready, but I am making progress. I have a
> question for you, as you seem to be involved in docker packaging. I saw
> that the golang-github-docker-docker-dev [1] seems to provide the source
> of multiple go modules, namely:
> - github.com/docker/cli
> - github.com/docker/docker
> - github.com/moby/buildkit
>
> All three of them are dependencies of docker-buildx.
> I started from the version v0.15.1 of docker-buildx as it is the last
> one that explicitly requires the version v26.1.x for these packages (the
> current version in Debian unstable). But I still get some missing
> packages error for these modules. Do you have an idea why?
>
> For example:
>
> src/github.com/docker/buildx/util/confutil/config.go:8:2: cannot find
> package "github.com/docker/cli/cli/command" in any of:
>         /usr/lib/go-1.23/src/github.com/docker/cli/cli/command (from
> $GOROOT)
>         /build/reproducible-path/docker-buildx-0.15.1/_build/src/
> github.com/docker/cli/cli/command (from $GOPATH)
>         /build/reproducible-path/docker-buildx-0.15.1/_build/src/
> github.com/moby/buildkit/util/tracing/delegated (from $GOPATH)
>

Just looking at this here, I think it is looking for sources that we have
in Debian in the docker.io source package here:

https://sources.debian.org/src/docker.io/26.1.5%2Bdfsg1-4/cli/cmd/docker/

However, they are not currently installed, checkout here:
https://sources.debian.org/src/docker.io/26.1.5%2Bdfsg1-4/debian/golang-github-docker-docker-dev.install/#L1-L4

It might be as easy as adding a few more lines to the
golang-github-docker-docker-dev.install file.

Can you give it a go and send me a MR on salsa with the source you need for
the docker buildx package?


I strongly suspect that adding new sources might pull in additional
dependencies that were not critical for getting the docker daemon and cli
to work in Debian. So let's be careful to only include packages that we
actually need. If docker-buildx requires those packages, let's try adding
them. Let me know what issues you run into.

Best,
-rt


-- 
regards,
    Reinhard

Reply via email to