alecthomas / kingpin

CONTRIBUTIONS ONLY: A Go (golang) command line and flag parser
MIT License
3.5k stars 273 forks source link

latest release is tooo old #266

Closed kyoh86 closed 5 years ago

kyoh86 commented 5 years ago
go get github.com/alecthomas/kingpin
go get gopkg.in/alecthomas/kingpin.v2

Both of them fetch v2.2.6 that is released on 18 Dec 2017. It's too old. 😖

kyoh86 commented 5 years ago

And I cannot find a way to get latest commit.

Case 1:

$ 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".

Case 2:

$ 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.

Case 3:

$ 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...

alecthomas commented 5 years ago

That go.mod shouldn't have had gopkg.in in it. Fixed.

kyoh86 commented 5 years ago

Thank you for your speedy response! 😂