You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
go get -u github.com/cli/cli/v2
go get: module github.com/cli/cli@upgrade found (v1.14.0), but does not contain package github.com/cli/cli/v2
go get -u github.com/cli/cli@v2.0.0
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.
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 getcommand no longer works (presumably because thego.modfile doesn't have/v2appended to the package name).Steps to reproduce the behavior
go get -u github.com/cli/cli/v2
go get: module github.com/cli/cli@upgrade found (v1.14.0), but does not contain package github.com/cli/cli/v2
go get -u github.com/cli/cli@v2.0.0
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 getshould install v2 of the application correctly in the Go root and go bin folder.