On Sat, Mar 7, 2020 at 10:20 AM Tong Sun wrote: > > On Sat, Mar 7, 2020 at 9:51 AM Shengjing Zhu wrote: > > > > > > Given a new package that needs to be packed, say > > > github.com/GoogleContainerTools/container-diff, how can I know what > > > are the dependent packages that are yet/need to be packed? > > > > We have such tool, but I think the document is not easy to find. > > > > https://github.com/Debian/dh-make-golang/blob/master/estimate.go#L168 > > Cool! > > Thanks a lot Shengjing! > > > PS: > > Usage: dh-make-golang estimate <go-package-importpath> > Estimates the work necessary to bring <go-package-importpath> into Debian > by printing all currently unpacked repositories. > Example: dh-make-golang estimate github.com/Debian/dh-make-golang
Hmm... I don't have to install every single dependent packages to use it, right? However, this is what I'm getting: $ dh-make-golang estimate github.com/docker/cli go get: 362.58 MiBpackage gotest.tools/v3/assert: cannot find package "gotest.tools/v3/assert" in any of: /usr/lib/go-1.13/src/gotest.tools/v3/assert (from $GOROOT) /tmp/dh-make-golang576951328/src/gotest.tools/v3/assert (from $GOPATH) package gotest.tools/v3/assert/cmp: cannot find package "gotest.tools/v3/assert/cmp" in any of: /usr/lib/go-1.13/src/gotest.tools/v3/assert/cmp (from $GOROOT) /tmp/dh-make-golang576951328/src/gotest.tools/v3/assert/cmp (from $GOPATH) package gotest.tools/v3/env: cannot find package "gotest.tools/v3/env" in any of: /usr/lib/go-1.13/src/gotest.tools/v3/env (from $GOROOT) /tmp/dh-make-golang576951328/src/gotest.tools/v3/env (from $GOPATH) package gotest.tools/v3/fs: cannot find package "gotest.tools/v3/fs" in any of: /usr/lib/go-1.13/src/gotest.tools/v3/fs (from $GOROOT) /tmp/dh-make-golang576951328/src/gotest.tools/v3/fs (from $GOPATH) package gotest.tools/v3/golden: cannot find package "gotest.tools/v3/golden" in any of: /usr/lib/go-1.13/src/gotest.tools/v3/golden (from $GOROOT) /tmp/dh-make-golang576951328/src/gotest.tools/v3/golden (from $GOPATH) go get: 808.32 MiBpackage github.com/googleapis/gnostic/OpenAPIv2: cannot find package "github.com/googleapis/gnostic/OpenAPIv2" in any of: /usr/lib/go-1.13/src/github.com/googleapis/gnostic/OpenAPIv2 (from $GOROOT) /tmp/dh-make-golang576951328/src/github.com/googleapis/gnostic/OpenAPIv2 (from $GOPATH) go get: 1.74 GiBpackage gotest.tools/v3/skip: cannot find package "gotest.tools/v3/skip" in any of: /usr/lib/go-1.13/src/gotest.tools/v3/skip (from $GOROOT) /tmp/dh-make-golang576951328/src/gotest.tools/v3/skip (from $GOPATH) go get: 1.74 GiBpackage gotest.tools/v3/icmd: cannot find package "gotest.tools/v3/icmd" in any of: /usr/lib/go-1.13/src/gotest.tools/v3/icmd (from $GOROOT) /tmp/dh-make-golang576951328/src/gotest.tools/v3/icmd (from $GOPATH) go get: 1.75 GiBpackage gotest.tools/v3/poll: cannot find package "gotest.tools/v3/poll" in any of: /usr/lib/go-1.13/src/gotest.tools/v3/poll (from $GOROOT) /tmp/dh-make-golang576951328/src/gotest.tools/v3/poll (from $GOPATH) 2020/03/07 15:32:44 exit status 1 I think they no longer exists (at their original places), and dh-make-golang should keep going, and when giving final estimate, mention/stress that those sources are gone.