Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install kubetest2 #118

Closed
liu-cong opened this issue Mar 24, 2021 · 3 comments
Closed

Unable to install kubetest2 #118

liu-cong opened this issue Mar 24, 2021 · 3 comments
Assignees
Labels
kind/support Categorizes issue or PR as a support question. sig/testing Categorizes an issue or PR as relevant to SIG Testing.

Comments

@liu-cong
Copy link

I tried to install kubetest2 following the README.md. And I ran into issues with github.com/containers/image/v5/manifest

GO111MODULE=on go get sigs.k8s.io/kubetest2/...@latest                                                   

go: downloading sigs.k8s.io/kubetest2 v0.0.0-20210322183049-358715462ab9
go: downloading github.com/octago/sflags v0.2.0
go: downloading k8s.io/release v0.7.1-0.20210204090829-09fb5e3883b8
go: downloading k8s.io/test-infra v0.0.0-20200617221206-ea73eaeab7ff
go: downloading golang.org/x/sys v0.0.0-20201112073958-5cba982894dd
go: downloading cloud.google.com/go v0.51.0
go: downloading github.com/go-git/go-git/v5 v5.2.0
go: downloading github.com/containers/image/v5 v5.9.0
go: downloading github.com/shirou/gopsutil v0.0.0-20190901111213-e4ec7b275ada
go: downloading github.com/shirou/gopsutil/v3 v3.20.12
go: downloading golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
go: downloading golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6
go: downloading github.com/google/go-github/v33 v33.0.0
go: downloading github.com/containers/libtrust v0.0.0-20190913040956-14b96171aa3b
go: downloading github.com/containers/ocicrypt v1.0.3
go: downloading github.com/docker/docker v1.4.2-0.20200309214505-aa6a9891b09c
go: downloading cloud.google.com/go/storage v1.0.0
go: downloading golang.org/x/net v0.0.0-20201110031124-69a78807bb2b
go: downloading github.com/klauspost/compress v1.11.3
go: downloading github.com/klauspost/pgzip v1.2.5
go: downloading github.com/ulikunitz/xz v0.5.8
go: downloading github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d
go: downloading google.golang.org/api v0.15.1
go: downloading google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013
go: downloading golang.org/x/exp v0.0.0-20191227195350-da58074b4299
go: downloading golang.org/x/tools v0.0.0-20200616133436-c1934b75d054
go: downloading go.opencensus.io v0.22.2
go: downloading github.com/go-ole/go-ole v1.2.4
go: downloading github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7
# github.com/containers/image/v5/manifest
../../../pkg/mod/github.com/containers/image/v5@v5.9.0/manifest/oci.go:44:234: undefined: v1.MediaTypeImageLayerNonDistributableZstd
../../../pkg/mod/github.com/containers/image/v5@v5.9.0/manifest/oci.go:44: undefined: v1.MediaTypeImageLayerZstd
../../../pkg/mod/github.com/containers/image/v5@v5.9.0/manifest/oci.go:101:28: undefined: v1.MediaTypeImageLayerNonDistributableZstd
../../../pkg/mod/github.com/containers/image/v5@v5.9.0/manifest/oci.go:106:28: undefined: v1.MediaTypeImageLayerZstd
@amwat
Copy link
Contributor

amwat commented Mar 24, 2021

You might be most likely running it from a working directory which is another project using go modules.

Unfortunately, for go versions < 1.16 installing a binary through go get also tries to update the modules of the project you are in. golang/go#30515

Try running the same command from outside a project cd $HOME (maybe?).

If you are on go1.16+ you can use install instead of get https://golang.org/doc/go1.16#go-command
GO111MODULE=on go install sigs.k8s.io/kubetest2/...@latest

This would be a good addition to the README.

/kind documentation

@k8s-ci-robot k8s-ci-robot added the kind/documentation Categorizes issue or PR as related to documentation. label Mar 24, 2021
@liu-cong
Copy link
Author

Thanks @amwat ! Your suggestion worked!

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 22, 2021
@kubernetes-sigs kubernetes-sigs deleted a comment from fejta-bot Jun 25, 2021
@BenTheElder
Copy link
Member

I think it's OK to leave the readme, this go quirk is not specific to this project, and can cause issues in any project with go get, but I've never seen this in a readme.

original issue is resolved now.

@BenTheElder BenTheElder added kind/support Categorizes issue or PR as a support question. and removed kind/documentation Categorizes issue or PR as related to documentation. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 25, 2021
@spiffxp spiffxp added the sig/testing Categorizes an issue or PR as relevant to SIG Testing. label Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. sig/testing Categorizes an issue or PR as relevant to SIG Testing.
Projects
None yet
Development

No branches or pull requests

5 participants