alecthomas / kingpin

CONTRIBUTIONS ONLY: A Go (golang) command line and flag parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert to a Go module

mvdan opened this issue · comments

The good news is that you're using a gopkg.in versioned import path, so it should be possible to just convert to a Go module without changing import paths or breaking any users.

Then, once v3 is around, you can switch from gopkg.in/alecthomas/kingpin.v2 to github.com/alecthomas/kingpin/v3 or any v3 import path you like.

Just for the record running go mod tidy add these lines to go.mod:

github.com/alecthomas/kingpin v2.2.6+incompatible
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc // indirect
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf // indirect

Packages template and units should adapt to Go Modules too. I am not sure why incompatible is added at the end of v2.2.6+incompatible.