Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

go install not working #174

Closed
Raidus opened this issue Sep 30, 2018 · 7 comments
Closed

go install not working #174

Raidus opened this issue Sep 30, 2018 · 7 comments

Comments

@Raidus
Copy link

Raidus commented Sep 30, 2018

Hi,

package installation works but executing go install gopkg.in/ahmdrz/goinsta.v2/goinsta gives me following error:

src/gopkg.in/ahmdrz/goinsta.v2/goinsta/main.go:23:8: cannot find package "github.com/ahmdrz/goinsta/goinsta/cmd" in any of:
	/usr/local/go/src/github.com/ahmdrz/goinsta/goinsta/cmd (from $GOROOT)
	/Users/willy/repos/go/src/github.com/ahmdrz/goinsta/goinsta/cmd (from $GOPATH)

My bash_profile

export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/repos/go
export PATH=$PATH:$GOPATH/bin

Any ideas?

@dgrr
Copy link
Contributor

dgrr commented Sep 30, 2018

go get -u -v github.com/ahmdrz/goinsta
go install github.com/ahmdrz/goinsta/cmd/goinsta

@Raidus
Copy link
Author

Raidus commented Oct 1, 2018

thanks @dgrr for the hint. the cmd you've provided didn't work but this cmd installed the module:

go install github.com/ahmdrz/goinsta/

I had to install another library, too:

go get -u -v github.com/howeyc/gopass
go install github.com/howeyc/gopass

@f4bio
Copy link

f4bio commented Oct 5, 2018

ya, I have the same issue.

I think the problem is in /goinsta/go.mod (v2.3 tag) to which gopkg.in/ahmdrz/goinsta.v2 is referencing. The name of the module to be installed is not correct.
also, github can't handle links with those suffixes (.v2 etc), so I don't think 8773afd will fix it.
But I'm really new to go, so don't count on what I'm saying.

Until this is fixed, you can use: $ go install github.com/f4bio/goinsta as a workaround (worked for me)

// edit: typos

@bliuchak
Copy link

bliuchak commented Dec 15, 2018

@f4bio , thanks for workaround 👍

go similar problems with go modules

$ go get -u -v github.com/ahmdrz/goinsta
go: finding github.com/ahmdrz/goinsta latest
go: github.com/ahmdrz/goinsta@v0.0.0-20181121053846-aa250bb4ac58: parsing go.mod: unexpected module path "github.com/ahmdrz/goinsta.v2"
go get: error loading module requirements

go.mod file

module github.com/bliuchak/insta

@bliuchak
Copy link

bliuchak commented Dec 22, 2018

@ahmdrz any chance to solve this?

@ngortheone
Copy link

I am also affected. +1 please fix this

@ahmdrz
Copy link
Owner

ahmdrz commented May 25, 2019

As I removed cmd package, you cannot install it.
ASAP We will make another repo just for cmd package.

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

No branches or pull requests

6 participants