Skip to content

[Bug]: Missing "/v3" in the go.mod file breaks go fetching project as module #6763

@smuda

Description

@smuda

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:

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

No one assigned

    Labels

    wontfixAn issue that does not need to be fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions