Skip to content

go get no longer works on v2.0.0 #4273

@cardonator

Description

@cardonator

Describe the bug

I have the gh application installed through Go and in my go bin folder. This has worked just fine, but now that v2.0.0 has released, the go get command no longer works (presumably because the go.mod file doesn't have /v2 appended to the package name).

Steps to reproduce the behavior

  1. go get -u github.com/cli/cli/v2

  2. go get: module github.com/cli/cli@upgrade found (v1.14.0), but does not contain package github.com/cli/cli/v2

  3. go get -u github.com/cli/cli@v2.0.0

  4. go get: github.com/cli/cli@v2.0.0: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2

Expected vs actual behavior

go get should install v2 of the application correctly in the Go root and go bin folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions