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: github.com/oxequa/realize imports gopkg.in/urfave/cli.v2: gopkg.in/urfave/cli.v2@v2.2.0: parsing go.mod: module declares its path as: github.com/urfave/cli/v2 but was required as: gopkg.in/urfave/cli.v2 #269

Open
chenyongze opened this issue Jun 28, 2020 · 4 comments

Comments

@chenyongze
Copy link

chenyongze commented Jun 28, 2020

image

➜ go go get github.com/oxequa/realize
go: github.com/oxequa/realize upgrade => v2.0.2+incompatible
go: finding module for package github.com/oxequa/interact
go: finding module for package gopkg.in/urfave/cli.v2
go: finding module for package gopkg.in/yaml.v2
go: finding module for package github.com/go-siris/siris/core/errors
go: finding module for package github.com/labstack/echo
go: finding module for package github.com/fsnotify/fsnotify
go: finding module for package github.com/fatih/color
go: finding module for package github.com/sirupsen/logrus
go: finding module for package github.com/labstack/echo/middleware
go: finding module for package golang.org/x/net/websocket
go: found github.com/oxequa/interact in github.com/oxequa/interact v0.0.0-20171114182912-f8fb5795b5d7
go: found gopkg.in/urfave/cli.v2 in gopkg.in/urfave/cli.v2 v2.2.0
go: found github.com/fatih/color in github.com/fatih/color v1.9.0
go: found github.com/fsnotify/fsnotify in github.com/fsnotify/fsnotify v1.4.9
go: found github.com/go-siris/siris/core/errors in github.com/go-siris/siris v7.4.0+incompatible
go: found github.com/labstack/echo in github.com/labstack/echo v3.3.10+incompatible
go: found github.com/sirupsen/logrus in github.com/sirupsen/logrus v1.6.0
go: found golang.org/x/net/websocket in golang.org/x/net v0.0.0-20200625001655-4c5254603344
go: found gopkg.in/yaml.v2 in gopkg.in/yaml.v2 v2.3.0
go: github.com/oxequa/realize imports
gopkg.in/urfave/cli.v2: gopkg.in/urfave/cli.v2@v2.2.0: parsing go.mod:
module declares its path as: github.com/urfave/cli/v2
but was required as: gopkg.in/urfave/cli.v2

@chenyongze
Copy link
Author

GO111MODULE=off go get github.com/oxequa/realize

@mathieucaroff
Copy link

More generally:

# *sh
GO111MODULE=off go get github.com/oxequa/realize

# powershell
$env:GO111MODULE # (to check it does not exist)
$env:GO111MODULE='off'; go get github.com/oxequa/realize
Remove-Item env:GO111MODULE

@demeralde
Copy link

Note you can add export GO111MODULE="off" to your .bashrc, .zshrc, or ~/.config/fish/config.fish (depending on your shell).

I'm assuming this won't cause any issues.

@kulak
Copy link

kulak commented Jun 21, 2023

The proposed solution does not work in GO 1.20:

GO111MODULE=off go install github.com/oxequa/realize
../go/src/github.com/oxequa/realize/realize/schema.go:8:2: cannot find package "github.com/urfave/cli/v2" in any of:
	/usr/lib/go/src/github.com/urfave/cli/v2 (from $GOROOT)
	/home/user_name/go/src/github.com/urfave/cli/v2 (from $GOPATH)

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

4 participants