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/[email protected]: 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