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

Error installing Go adr #3

Open
AbhiramDwivedi opened this issue Jul 11, 2020 · 4 comments · May be fixed by #6
Open

Error installing Go adr #3

AbhiramDwivedi opened this issue Jul 11, 2020 · 4 comments · May be fixed by #6

Comments

@AbhiramDwivedi
Copy link

AbhiramDwivedi commented Jul 11, 2020

Unable to install this repo

C:\Users\xyz>go get github.com/marouni/adr
# github.com/marouni/adr
go\src\github.com\marouni\adr\commands.go:9:15: cannot use []cli.Command literal (type []cli.Command) as type []*cli.Command in assignment
go\src\github.com\marouni\adr\commands.go:19:33: cannot use c.Args() (type cli.Args) as type []string in argument to newAdr

I am using go version go1.13.8 windows/amd64

@marouni
Copy link
Owner

marouni commented Jul 12, 2020

@AbhiramDwivedi I am not aware of such issues, thanks for bringing this up.

Any reason you're not just using the pre-built binaries ?

@fakiot
Copy link

fakiot commented Aug 17, 2020

@AbhiramDwivedi Your problem is because of go modules, I had same problem, but I solved including go.mod file.

I cloned the repository outer GOPATH and executed
go mod init github.com/marouni/adr

Then I executed
go install github.com/marouni/adr

Maybe isn't the best way to solve it, but it works.

@esttorhe
Copy link

esttorhe commented Sep 8, 2020

If you would like to keep it on a path inside GOPATH you can provide this as an env var prior the command:

GO111MODULE=on <command here>

@bradwood
Copy link

bradwood commented Dec 1, 2020

having the same problem go version go1.15.2 linux/amd64

@l3x l3x linked a pull request May 13, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

5 participants