k8s-conformance icon indicating copy to clipboard operation
k8s-conformance copied to clipboard

go get no longer working

Open judge-red opened this issue 8 months ago • 0 comments

The instructions to run sonobuoy include using go get: https://github.com/cncf/k8s-conformance/blob/master/instructions.md?plain=1#L22

However, doing so seems to now result in an error:

$ go get -u -v github.com/vmware-tanzu/sonobuoy                                                          
go: go.mod file not found in current directory or any parent directory.
        'go get' is no longer supported outside a module.                                                
        To build and install a command, use 'go install' with a version,
        like 'go install example.com/cmd@latest'                                                         
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.  

I assume the correct syntax would now be:

go install -v github.com/vmware-tanzu/sonobuoy@latest

But I'm not familiar with the go cli, so not sure this does the same.

judge-red avatar Jun 21 '24 11:06 judge-red