gin icon indicating copy to clipboard operation
gin copied to clipboard

Go get gin can't find urfave module

Open StaceC opened this issue 6 years ago • 4 comments

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

StaceC avatar Aug 05 '19 13:08 StaceC

Works for me without go modules support:

GO111MODULE=off go get github.com/codegangsta/gin

piotrbulinski avatar Aug 06 '19 09:08 piotrbulinski

Apparently the module has been renamed

should use this now: github.com/urfave/cli v1.21.0

adolfoportilla avatar Oct 01 '19 18:10 adolfoportilla

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

mattgen88 avatar Oct 07 '19 01:10 mattgen88

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

t0rjan avatar Oct 21 '19 07:10 t0rjan