Unable to pull cli/cmd/tanzu
package via go get
#444
Comments
Signed-off-by: John McBride <jmcbride@vmware.com>
Curious – are you trying to add But also you cannot add a main package like |
The
This will only work in a module with the necessary dependencies declared. Otherwise, you hit this error:
Therefore, we need the ability to |
Thanks! Interesting use case. |
Signed-off-by: John McBride <jmcbride@vmware.com>
Signed-off-by: John McBride <jmcbride@vmware.com>
Bug description
In a brand new VM, in a fresh go module, I am unable to pull get the
cmd/cli/tanzu
package as a dependency:I believe this is related to the v0.7.0 controller-runtime dependency being incompatible with the v0.21 client-go dependency. I'm not 100% sure of the internal workings of go mod, but I was first suspicious of this seeing the
go/pkg/mod/sigs.k8s.io/controller-runtime@v0.7.0/
log lines in the go get error. Locally, if I bump thev0.7.0
dep tov0.9.0
it works. PR for this incomingThis issue may also be related: kubernetes-sigs/controller-runtime#1473
Affected product area (please put an X in all that apply)
Expected behavior
I would expect the library (and it's various packages) to always be "go getable" when using
go get
to grab dependencies. This mainly affects TCE as we pull down thecmd/cli/tanzu
package to build.Steps to reproduce the bug
go mod init example.com
cmd/cli/tanzu
dependency viago get github.com/vmware-tanzu/tanzu-framework/cmd/cli/tanzu@main
- see failuresVersion (include the SHA if the version is not obvious)
Latest commits on
main
@ 9bb8119Environment where the bug was observed (cloud, OS, etc)
Using Go 1.16
VM environment:
The text was updated successfully, but these errors were encountered: