derailed / k9s

🐶 Kubernetes CLI To Manage Your Clusters In Style!
https://k9scli.io
Apache License 2.0
27.08k stars 1.7k forks source link

"go get" installation method fails #1145

Open BerhorShadowbuckle opened 3 years ago

BerhorShadowbuckle commented 3 years ago




Describe the bug "go get" installation method fails due to invalid docker/distribution version:

$ go version
go version go1.16.5 linux/amd64

$ go get -u github.com/derailed/k9s
go: downloading github.com/derailed/k9s v0.24.10
go get: github.com/derailed/k9s@v0.24.2 updating to
        github.com/derailed/k9s@v0.24.10 requires
        helm.sh/helm/v3@v3.5.3 requires
        github.com/deislabs/oras@v0.10.0 requires
        github.com/docker/distribution@v0.0.0-00010101000000-000000000000: invalid version: unknown revision 000000000000

To Reproduce Steps to reproduce the behavior:

Run "go get -u github.com/derailed/k9s"

Expected behavior "go get" installation method should work.

Screenshots If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

Additional context Add any other context about the problem here.

slimus commented 2 years ago
go get -u github.com/derailed/k9s
go: downloading k8s.io/klog v1.0.0
go: downloading k8s.io/klog/v2 v2.70.1
go: downloading github.com/spf13/cobra v1.5.0
go: downloading github.com/fsnotify/fsnotify v1.5.4
go: downloading github.com/gdamore/tcell v1.4.0
go: downloading github.com/go-logr/logr v1.2.3
go: downloading k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed
go: downloading golang.org/x/net v0.0.0-20220728181054-f92ba40d432d
go: downloading helm.sh/helm/v3 v3.9.2
go: downloading helm.sh/helm v2.17.0+incompatible
go: downloading github.com/imdario/mergo v0.3.13
go: downloading golang.org/x/term v0.0.0-20220722155259-a9ba230a4035
go: downloading github.com/rivo/uniseg v0.3.1
go: downloading golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10
go: downloading sigs.k8s.io/structured-merge-diff v1.0.2
go: downloading github.com/google/gnostic v0.6.9
go: downloading github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
go: downloading github.com/evanphx/json-patch v5.6.0+incompatible
go: downloading github.com/google/uuid v1.3.0
go: downloading github.com/Azure/go-autorest/autorest v0.11.28
go: downloading github.com/Azure/go-autorest/autorest/adal v0.9.21
go: downloading golang.org/x/oauth2 v0.0.0-20220722155238-128564f6959c
go: downloading golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9
go: downloading sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2
go: downloading github.com/aws/aws-sdk-go v1.44.65
go: downloading github.com/prometheus/common v0.37.0
go: downloading k8s.io/kube-openapi v0.0.0-20220627174259-011e075b9cb8
go: downloading google.golang.org/protobuf v1.28.1
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/google/btree v1.1.2
go: downloading github.com/golang-jwt/jwt/v4 v4.4.2
go: downloading golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
go: downloading github.com/golang-jwt/jwt v3.2.2+incompatible
go: downloading cloud.google.com/go/compute v1.7.0
go: downloading cloud.google.com/go v0.103.0
go: downloading sigs.k8s.io/kustomize/api v0.11.5
go: downloading sigs.k8s.io/kustomize/kyaml v0.13.7
go: downloading sigs.k8s.io/kustomize v2.0.3+incompatible
go: downloading github.com/shopspring/decimal v1.3.1
go: downloading github.com/spf13/cast v1.5.0
go: downloading github.com/BurntSushi/toml v1.2.0
go: downloading github.com/prometheus/client_golang v1.12.2
go: downloading github.com/sirupsen/logrus v1.9.0
go: downloading oras.land/oras-go v1.2.0
go: downloading github.com/Masterminds/squirrel v1.5.3
go: downloading github.com/jmoiron/sqlx v1.3.5
go: downloading github.com/lib/pq v1.10.6
go: downloading github.com/rubenv/sql-migrate v1.1.2
go: downloading github.com/chai2010/gettext-go v1.0.2
go: downloading github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f
go: downloading github.com/MakeNowJust/heredoc v1.0.0
go: downloading github.com/mitchellh/go-wordwrap v1.0.1
go: downloading github.com/russross/blackfriday v1.6.0
go: downloading github.com/prometheus/procfs v0.8.0
go: downloading golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
go: downloading github.com/docker/cli v20.10.17+incompatible
go: downloading github.com/docker/docker v20.10.17+incompatible
go: downloading github.com/go-gorp/gorp v2.2.0+incompatible
go: downloading github.com/google/go-cmp v0.5.8
go: downloading github.com/go-openapi/jsonreference v0.20.0
go: downloading github.com/go-openapi/swag v0.21.1
go: downloading github.com/emicklei/go-restful v2.16.0+incompatible
go: downloading google.golang.org/grpc v1.48.0
go: downloading github.com/mailru/easyjson v0.7.7
^[[1;2go: downloading google.golang.org/genproto v0.0.0-20220725144611-272f38e5d71b
go: downloading github.com/stretchr/testify v1.8.0
go: downloading github.com/xlab/treeprint v1.1.0
go: downloading github.com/klauspost/compress v1.15.9
go: downloading github.com/go-errors/errors v1.4.2
go: downloading go.starlark.net v0.0.0-20220714194419-4cadf0a12139
go: downloading cloud.google.com/go v0.102.0
go: downloading github.com/emicklei/go-restful/v3 v3.8.0
go: downloading github.com/emicklei/go-restful/v3 v3.9.0
go: downloading github.com/Azure/go-autorest/autorest/mocks v0.4.2
go: downloading github.com/distribution/distribution/v3 v3.0.0-20220526142353-ffbd94cbe269
go: downloading github.com/go-sql-driver/mysql v1.6.0
go: downloading github.com/kr/pretty v0.3.0
go: downloading github.com/onsi/gomega v1.19.0
go: downloading github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5
go: downloading github.com/stretchr/objx v0.4.0
go: downloading golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f
go: upgraded cloud.google.com/go v0.99.0 => v0.102.0
go: added cloud.google.com/go/compute v1.7.0
go: upgraded github.com/Azure/go-autorest/autorest v0.11.20 => v0.11.28
go: upgraded github.com/Azure/go-autorest/autorest/adal v0.9.15 => v0.9.21
go: upgraded github.com/BurntSushi/toml v1.0.0 => v1.2.0
go: upgraded github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd => v1.0.0
go: upgraded github.com/Masterminds/squirrel v1.5.2 => v1.5.3
go: upgraded github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535 => v0.0.0-20210307081110-f21760c49a8d
go: upgraded github.com/aws/aws-sdk-go v1.38.49 => v1.44.65
go: upgraded github.com/docker/cli v20.10.11+incompatible => v20.10.17+incompatible
go: upgraded github.com/docker/docker v20.10.14+incompatible => v20.10.17+incompatible
go: upgraded github.com/emicklei/go-restful v2.9.5+incompatible => v2.16.0+incompatible
go: added github.com/emicklei/go-restful/v3 v3.9.0
go: upgraded github.com/evanphx/json-patch v4.12.0+incompatible => v5.6.0+incompatible
go: upgraded github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d => v0.0.0-20210407135951-1de76d718b3f
go: upgraded github.com/fsnotify/fsnotify v1.5.1 => v1.5.4
go: upgraded github.com/fvbommel/sortorder v1.0.1 => v1.0.2
go: upgraded github.com/gdamore/tcell/v2 v2.2.1 => v2.5.1
go: upgraded github.com/go-errors/errors v1.0.1 => v1.4.2
go: upgraded github.com/go-logr/logr v1.2.2 => v1.2.3
go: upgraded github.com/go-openapi/jsonreference v0.19.5 => v0.20.0
go: upgraded github.com/go-openapi/swag v0.19.14 => v0.21.1
go: upgraded github.com/golang-jwt/jwt/v4 v4.0.0 => v4.4.2
go: upgraded github.com/google/btree v1.0.1 => v1.1.2
go: upgraded github.com/google/gnostic v0.5.7-v3refs => v0.6.9
go: upgraded github.com/google/go-cmp v0.5.6 => v0.5.8
go: upgraded github.com/google/uuid v1.2.0 => v1.3.0
go: upgraded github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 => v0.0.0-20190611155906-901d90724c79
go: upgraded github.com/imdario/mergo v0.3.12 => v0.3.13
go: upgraded github.com/jmoiron/sqlx v1.3.4 => v1.3.5
go: upgraded github.com/klauspost/compress v1.13.6 => v1.15.9
go: upgraded github.com/lib/pq v1.10.4 => v1.10.6
go: upgraded github.com/mailru/easyjson v0.7.6 => v0.7.7
go: upgraded github.com/mattn/go-runewidth v0.0.12 => v0.0.13
go: upgraded github.com/mitchellh/go-wordwrap v1.0.0 => v1.0.1
go: upgraded github.com/onsi/gomega v1.15.0 => v1.19.0
go: upgraded github.com/prometheus/client_golang v1.12.1 => v1.12.2
go: upgraded github.com/prometheus/common v0.32.1 => v0.37.0
go: upgraded github.com/prometheus/procfs v0.7.3 => v0.8.0
go: upgraded github.com/rivo/uniseg v0.2.0 => v0.3.1
go: upgraded github.com/rubenv/sql-migrate v1.1.1 => v1.1.2
go: upgraded github.com/russross/blackfriday v1.5.2 => v1.6.0
go: upgraded github.com/shopspring/decimal v1.2.0 => v1.3.1
go: upgraded github.com/sirupsen/logrus v1.8.1 => v1.9.0
go: upgraded github.com/spf13/cast v1.4.1 => v1.5.0
go: upgraded github.com/spf13/cobra v1.4.0 => v1.5.0
go: upgraded github.com/stretchr/testify v1.7.1 => v1.8.0
go: upgraded github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f => v0.0.0-20190905194746-02993c407bfb
go: upgraded github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca => v1.1.0
go: upgraded go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 => v0.0.0-20220714194419-4cadf0a12139
go: upgraded golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd => v0.0.0-20220722155217-630584e8d5aa
go: upgraded golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd => v0.0.0-20220728181054-f92ba40d432d
go: upgraded golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 => v0.0.0-20220722155238-128564f6959c
go: upgraded golang.org/x/sync v0.0.0-20210220032951-036812b2e83c => v0.0.0-20220722155255-886fb9371eb4
go: upgraded golang.org/x/sys v0.0.0-20220412211240-33da011f77ad => v0.0.0-20220728004956-3c1f35247d10
go: upgraded golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 => v0.0.0-20220722155259-a9ba230a4035
go: upgraded golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 => v0.0.0-20220722155302-e5dcc9cfc0b9
go: upgraded google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368 => v0.0.0-20220725144611-272f38e5d71b
go: upgraded google.golang.org/grpc v1.43.0 => v1.48.0
go: upgraded google.golang.org/protobuf v1.27.1 => v1.28.1
go: upgraded gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b => v3.0.1
go: upgraded helm.sh/helm/v3 v3.9.0 => v3.9.2
go: upgraded k8s.io/api v0.24.2 => v0.24.3
go: upgraded k8s.io/apiextensions-apiserver v0.24.2 => v0.24.3
go: upgraded k8s.io/apimachinery v0.24.2 => v0.24.3
go: upgraded k8s.io/apiserver v0.24.2 => v0.24.3
go: upgraded k8s.io/cli-runtime v0.24.2 => v0.24.3
go: upgraded k8s.io/client-go v0.24.2 => v1.5.2
go: upgraded k8s.io/component-base v0.24.2 => v0.24.3
go: upgraded k8s.io/klog/v2 v2.70.0 => v2.70.1
go: upgraded k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42 => v0.0.0-20220627174259-011e075b9cb8
go: upgraded k8s.io/kubectl v0.24.2 => v0.24.3
go: upgraded k8s.io/metrics v0.24.2 => v0.24.3
go: upgraded k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 => v0.0.0-20220728103510-ee6ede2d64ed
go: upgraded oras.land/oras-go v1.1.0 => v1.2.0
go: upgraded sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 => v0.0.0-20220713155537-f223a00ba0e2
go: upgraded sigs.k8s.io/kustomize/api v0.11.4 => v0.11.5
go: upgraded sigs.k8s.io/kustomize/kyaml v0.13.6 => v0.13.7

No problem now? @derailed