On Sat, Jan 25, 2025 at 12:18 PM Nicolas Peugnet <nicolas@club1.fr> wrote:
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.