Closed kyoh86 closed 5 years ago
And I cannot find a way to get latest commit.
$ go get github.com/alecthomas/kingpin@master
go: finding github.com/alecthomas/kingpin master
go: github.com/alecthomas/kingpin@v0.0.0-20190114064002-e7f8ee3d9b4b: parsing go.mod: unexpected module path "gopkg.in/alecthomas/kingpin.v2"
go get: error loading module requirements
It fails coz go.mod has module path "gopkg.in/alecthomas/kingpin.v2" that is not match for "github.com/alecthomas/kingpin".
$ go get -u gopkg.in/alecthomas/kingpin.v2@master
go: finding gopkg.in/alecthomas/kingpin.v2 master
$ grep -e kingpin go.mod
gopkg.in/alecthomas/kingpin.v2 v2.2.6
v2.2.6
is got coz gopkg.in does not support @branch
notation.
$ go get -u gopkg.in/alecthomas/kingpin.v2@e7f8ee3d9b4b47000af44d34904a9e4f598e577f
go: finding gopkg.in/alecthomas/kingpin.v2 e7f8ee3d9b4b47000af44d34904a9e4f598e577f
go get gopkg.in/alecthomas/kingpin.v2@e7f8ee3d9b4b47000af44d34904a9e4f598e577f: unknown revision e7f8ee3d9b4b47000af44d34904a9e4f598e577f
v2.2.6
is got coz gopkg.in does not support @revision
notation.
I want to use newer version...
That go.mod shouldn't have had gopkg.in in it. Fixed.
Thank you for your speedy response! 😂
Both of them fetch v2.2.6 that is released on 18 Dec 2017. It's too old. 😖