Go get gin can't find urfave module
StaceC opened this issue · comments
Stace C commented
Calling go get github.com/codegangsta/gin
on version go1.12.5 darwin/amd64 returns:
build github.com/codegangsta/gin: cannot find module for path gopkg.in/urfave/cli.v1
Piotr Buliński commented
Works for me without go modules support:
GO111MODULE=off go get github.com/codegangsta/gin
Adolfo Portilla commented
Apparently the module has been renamed
should use this now:
github.com/urfave/cli v1.21.0
Matthew General commented
I'm also experiencing this issue:
$go get -u github.com/codegangsta/gin
go: finding github.com/codegangsta/gin latest
go: downloading github.com/codegangsta/gin v0.0.0-20171026143024-cafe2ce98974
go: extracting github.com/codegangsta/gin v0.0.0-20171026143024-cafe2ce98974
go: finding github.com/codegangsta/envy/lib latest
go: finding github.com/0xAX/notificator latest
go: finding github.com/mattn/go-shellwords v1.0.6
go: finding github.com/codegangsta/envy latest
go: downloading github.com/mattn/go-shellwords v1.0.6
go: downloading github.com/codegangsta/envy v0.0.0-20141216192214-4b78388c8ce4
go: finding gopkg.in/urfave/cli.v1 v1.22.1
go: downloading github.com/0xAX/notificator v0.0.0-20181105090803-d81462e38c21
go: extracting github.com/codegangsta/envy v0.0.0-20141216192214-4b78388c8ce4
go: extracting github.com/mattn/go-shellwords v1.0.6
go: extracting github.com/0xAX/notificator v0.0.0-20181105090803-d81462e38c21
go: downloading gopkg.in/urfave/cli.v1 v1.22.1
build github.com/codegangsta/gin: cannot load gopkg.in/urfave/cli.v1: cannot find module providing package gopkg.in/urfave/cli.v1
$go version
go version go1.12.10 linux/amd64
T0RJAN commented
I was able to fix this error by adding this to go.mod:
replace gopkg.in/urfave/cli.v1 => github.com/urfave/cli v1.21.0