I've just tried to estimate amount of work needed to package k9s.
dh-make-golang was working for ~40 minutes, downloaded several gigabytes
of git repositories
and failed without any meaningful info. Perhaps more error handling is
needed.
[☸ lab:flux-system]
❯~/pakiety/testdh-make-golang estimate github.com/derailed/k9s
go get: 945.64 MiBpackage github.com/derailed/k9s: cannot find package
"github.com/hashicorp/hcl/hcl/printer" in any of:
/usr/lib/go-1.21/src/github.com/hashicorp/hcl/hcl/printer (from
$GOROOT)
/tmp/dh-make-golang3998533317/src/github.com/hashicorp/hcl/hcl/printer (from $GOPATH)
go get: 984.70 MiB# cd
/tmp/dh-make-golang3998533317/src/github.com/anchore/grype; git
submodule update --init --recursive
Submodule 'test/quality/vulnerability-match-labels'
(git@github.com:anchore/vulnerability-match-labels.git) registered for
path 'test/quality/vulnerability-match-labels'
Cloning into
'/tmp/dh-make-golang3998533317/src/github.com/anchore/grype/test/quality/vulnerability-match-labels'...
hostkeys_find_by_key_hostfile: hostkeys_foreach failed for
/home/fenio/.ssh/known_hosts: Permission denied
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:anchore/vulnerability-match-labels.git'
into submodule path
'/tmp/dh-make-golang3998533317/src/github.com/anchore/grype/test/quality/vulnerability-match-labels'
failed
Failed to clone 'test/quality/vulnerability-match-labels'. Retry scheduled
Cloning into
'/tmp/dh-make-golang3998533317/src/github.com/anchore/grype/test/quality/vulnerability-match-labels'...
hostkeys_find_by_key_hostfile: hostkeys_foreach failed for
/home/fenio/.ssh/known_hosts: Permission denied
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:anchore/vulnerability-match-labels.git'
into submodule path
'/tmp/dh-make-golang3998533317/src/github.com/anchore/grype/test/quality/vulnerability-match-labels'
failed
Failed to clone 'test/quality/vulnerability-match-labels' a second time,
aborting
package github.com/derailed/k9s
imports github.com/anchore/grype/cmd/grype/cli/options: exit
status 1
go get: 1.44 GiBpackage github.com/derailed/k9s
imports github.com/containerd/containerd: no Go files in
/tmp/dh-make-golang3998533317/src/github.com/containerd/containerd
go get: 1.71 GiB# cd
/tmp/dh-make-golang3998533317/src/github.com/docker; git clone --
https://github.com/docker/docker
/tmp/dh-make-golang3998533317/src/github.com/docker/docker
Cloning into
'/tmp/dh-make-golang3998533317/src/github.com/docker/docker'...
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly:
CANCEL (err 8)
error: 4262 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
package github.com/derailed/k9s
imports github.com/docker/docker/client: exit status 128
package github.com/derailed/k9s: cannot find package
"github.com/docker/docker/pkg/homedir" in any of:
/usr/lib/go-1.21/src/github.com/docker/docker/pkg/homedir (from
$GOROOT)
/tmp/dh-make-golang3998533317/src/github.com/docker/docker/pkg/homedir (from $GOPATH)
go get: 1.92 GiBpackage github.com/derailed/k9s: cannot find package
"github.com/mholt/archiver/v3" in any of:
/usr/lib/go-1.21/src/github.com/mholt/archiver/v3 (from $GOROOT)
/tmp/dh-make-golang3998533317/src/github.com/mholt/archiver/v3
(from $GOPATH)
go get: 2.20 GiBpackage github.com/derailed/k9s: cannot find package
"github.com/docker/docker/api/types" in any of:
/usr/lib/go-1.21/src/github.com/docker/docker/api/types (from
$GOROOT)
/tmp/dh-make-golang3998533317/src/github.com/docker/docker/api/types (from $GOPATH)
go get: 2.21 GiBpackage github.com/derailed/k9s: cannot find package
"github.com/bmatcuk/doublestar/v2" in any of:
/usr/lib/go-1.21/src/github.com/bmatcuk/doublestar/v2 (from
$GOROOT)
/tmp/dh-make-golang3998533317/src/github.com/bmatcuk/doublestar/v2 (from $GOPATH)
go get: 2.31 GiBpackage github.com/derailed/k9s: code in directory
/tmp/dh-make-golang3998533317/src/github.com/glebarez/go-sqlite expects
import "modernc.org/sqlite"
go get: 2.32 GiBpackage github.com/derailed/k9s
imports gorm.io/gorm/clause: unrecognized import path
"gorm.io/gorm/clause": reading https://gorm.io/gorm/clause?go-get=1: 404
Not Found
package github.com/derailed/k9s
imports gorm.io/gorm/logger: unrecognized import path
"gorm.io/gorm/logger": reading https://gorm.io/gorm/logger?go-get=1: 404
Not Found
package github.com/derailed/k9s
imports gorm.io/gorm/schema: unrecognized import path
"gorm.io/gorm/schema": reading https://gorm.io/gorm/schema?go-get=1: 404
Not Found
package github.com/derailed/k9s
imports gorm.io/gorm/callbacks: unrecognized import path
"gorm.io/gorm/callbacks": reading
https://gorm.io/gorm/callbacks?go-get=1: 404 Not Found
go get: 2.32 GiBpackage github.com/derailed/k9s
imports gorm.io/gorm/migrator: unrecognized import path
"gorm.io/gorm/migrator": reading https://gorm.io/gorm/migrator?go-get=1:
404 Not Found
go get: 6.06 GiB# cd /tmp/dh-make-golang3998533317/src/k8s.io; git clone
-- https://github.com/kubernetes/kubectl
/tmp/dh-make-golang3998533317/src/k8s.io/kubectl
Cloning into '/tmp/dh-make-golang3998533317/src/k8s.io/kubectl'...
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly:
CANCEL (err 8)
error: 7405 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
package github.com/derailed/k9s
imports k8s.io/kubectl/pkg/util/storage: exit status 128
go get: 6.09 GiBpackage github.com/derailed/k9s
imports oras.land/oras-go/pkg/auth: unrecognized import path
"oras.land/oras-go/pkg/auth": reading
https://oras.land/oras-go/pkg/auth?go-get=1: 404 Not Found
package github.com/derailed/k9s
imports oras.land/oras-go/pkg/auth/docker: unrecognized import
path "oras.land/oras-go/pkg/auth/docker": reading
https://oras.land/oras-go/pkg/auth/docker?go-get=1: 404 Not Found
go get: 6.09 GiBpackage github.com/derailed/k9s
imports oras.land/oras-go/pkg/content: unrecognized import path
"oras.land/oras-go/pkg/content": reading
https://oras.land/oras-go/pkg/content?go-get=1: 404 Not Found
package github.com/derailed/k9s
imports oras.land/oras-go/pkg/context: unrecognized import path
"oras.land/oras-go/pkg/context": reading
https://oras.land/oras-go/pkg/context?go-get=1: 404 Not Found
package github.com/derailed/k9s
imports oras.land/oras-go/pkg/oras: unrecognized import path
"oras.land/oras-go/pkg/oras": reading
https://oras.land/oras-go/pkg/oras?go-get=1: 404 Not Found
package github.com/derailed/k9s
imports oras.land/oras-go/pkg/registry: unrecognized import path
"oras.land/oras-go/pkg/registry": reading
https://oras.land/oras-go/pkg/registry?go-get=1: 404 Not Found
package github.com/derailed/k9s
imports oras.land/oras-go/pkg/registry/remote: unrecognized
import path "oras.land/oras-go/pkg/registry/remote": reading
https://oras.land/oras-go/pkg/registry/remote?go-get=1: 404 Not Found
package github.com/derailed/k9s
imports oras.land/oras-go/pkg/registry/remote/auth: unrecognized
import path "oras.land/oras-go/pkg/registry/remote/auth": reading
https://oras.land/oras-go/pkg/registry/remote/auth?go-get=1: 404 Not Found
go get: 6.09 GiBpackage github.com/derailed/k9s: cannot find package
"k8s.io/kubectl/pkg/cmd/util" in any of:
/usr/lib/go-1.21/src/k8s.io/kubectl/pkg/cmd/util (from $GOROOT)
/tmp/dh-make-golang3998533317/src/k8s.io/kubectl/pkg/cmd/util
(from $GOPATH)
package github.com/derailed/k9s: cannot find package
"k8s.io/kubectl/pkg/validation" in any of:
/usr/lib/go-1.21/src/k8s.io/kubectl/pkg/validation (from $GOROOT)
/tmp/dh-make-golang3998533317/src/k8s.io/kubectl/pkg/validation
(from $GOPATH)
go get: 6.13 GiBpackage github.com/derailed/k9s: cannot find package
"k8s.io/kubectl/pkg/describe" in any of:
/usr/lib/go-1.21/src/k8s.io/kubectl/pkg/describe (from $GOROOT)
/tmp/dh-make-golang3998533317/src/k8s.io/kubectl/pkg/describe
(from $GOPATH)
package github.com/derailed/k9s: cannot find package
"k8s.io/kubectl/pkg/drain" in any of:
/usr/lib/go-1.21/src/k8s.io/kubectl/pkg/drain (from $GOROOT)
/tmp/dh-make-golang3998533317/src/k8s.io/kubectl/pkg/drain (from
$GOPATH)
package github.com/derailed/k9s: cannot find package
"k8s.io/kubectl/pkg/polymorphichelpers" in any of:
/usr/lib/go-1.21/src/k8s.io/kubectl/pkg/polymorphichelpers (from
$GOROOT)
/tmp/dh-make-golang3998533317/src/k8s.io/kubectl/pkg/polymorphichelpers (from $GOPATH)
package github.com/derailed/k9s: cannot find package
"k8s.io/kubectl/pkg/scheme" in any of:
/usr/lib/go-1.21/src/k8s.io/kubectl/pkg/scheme (from $GOROOT)
/tmp/dh-make-golang3998533317/src/k8s.io/kubectl/pkg/scheme
(from $GOPATH)
2023/12/18 15:29:06 estimate: go get: exit status 1
[☸ lab:flux-system] [⏱ 39m9s]
❯~/pakiety/test
regards
Bartek