Skip to content

Unable to use kuberesolver with go modules since addition of go.mod #11

@bmhatfield

Description

@bmhatfield

I am not 100% sure what to do about this, but the error message is:

module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2

And the relevant Go issue is: golang/go#35732

I believe the root of the problem is that the import path does not end in /v2, but the tag is v2.3.0. This was previously fine because there was no go.mod on this repo, allowing for the use of +incompatible, but now that the repo has a go.mod, that does not work anymore.

I was able to temporarily work around this by using a computed version without referencing the tags, but it's sad to lose that version metadata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions