Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go get gin can't find urfave module #154

Open
StaceC opened this issue Aug 5, 2019 · 4 comments
Open

Go get gin can't find urfave module #154

StaceC opened this issue Aug 5, 2019 · 4 comments

Comments

@StaceC
Copy link

StaceC commented Aug 5, 2019

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 StaceC changed the title urfave Go get gin can't find urfave module Aug 5, 2019
@piotrbulinski
Copy link
Contributor

Works for me without go modules support:

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

@adolfoportilla
Copy link

Apparently the module has been renamed

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

@mattgen88
Copy link

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
Copy link

t0rjan commented Oct 21, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants