Closed
Description
What steps did you take and what happened:
go install sigs.k8s.io/[email protected]: sigs.k8s.io/[email protected]
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
Albertos-MacBook-Pro:~@albertogarla $ go get sigs.k8s.io/[email protected]
go get: sigs.k8s.io/[email protected] updating to
sigs.k8s.io/[email protected] requires
sigs.k8s.io/cluster-api/[email protected] requires
sigs.k8s.io/[email protected]: invalid version: unknown revision 000000000000
go get: sigs.k8s.io/cluster-api/test@none updating to
sigs.k8s.io/cluster-api/[email protected] requires
sigs.k8s.io/[email protected]: invalid version: unknown revision 000000000000
What did you expect to happen:
go get / go install works
Anything else you would like to add:
This is the controversial clause https://github.com/kubernetes-sigs/cluster-api/blob/master/test/go.mod#L5
This can be workaround by adding a replace clause for capi in the invoking go.mod file. Nevertheless I'd expect us to provide a better solution so this commands work out of the box.
Environment:
- Cluster-api version:
- Minikube/KIND version:
- Kubernetes version: (use
kubectl version
): - OS (e.g. from
/etc/os-release
):
/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]