-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
wontfixAn issue that does not need to be fixedAn issue that does not need to be fixed
Description
Version
3.6.2
What Kubernetes platforms are you running on?
Openshift
Steps to reproduce
I want to include github.com/nginxinc/kubernetes-ingress in another golang project (for example to be able to read/write Policy objects to the K8s api) so I use the following command:
% go get github.com/nginxinc/[email protected]
go: github.com/nginxinc/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/nginxinc/kubernetes-ingress/v3")
This seems to be by design by the golang authors. Referenses:
- How To Upgrade To A Major Version In Go
- invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2
So this means that the following command should work:
% go get github.com/nginxinc/kubernetes-ingress/[email protected]
go: github.com/nginxinc/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/nginxinc/kubernetes-ingress/v3")
It seems that this is because the go.mod in the project does not include "/v3".
Metadata
Metadata
Assignees
Labels
wontfixAn issue that does not need to be fixedAn issue that does not need to be fixed