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-ipfs must be built from within your $GOPATH directory #2969

Closed
ChristianKniep opened this issue Jul 14, 2016 · 4 comments
Closed

go-ipfs must be built from within your $GOPATH directory #2969

ChristianKniep opened this issue Jul 14, 2016 · 4 comments

Comments

@ChristianKniep
Copy link
Contributor

Hey y'all,

I am wondering what I do wrong...

Cheers
Christian

➜  go-ipfs git:(master) docker run -ti -e GOPATH=/usr/local/ -v $(pwd):/usr/local/src/github.con/ipfs/go-ipfs/ -w /usr/local/src/github.con/ipfs/go-ipfs/ qnib/alpn-go-dev make build
go-ipfs must be built from within your $GOPATH directory.
expected '' but got '/usr/local/src/github.con/ipfs/go-ipfs'
Makefile:44: recipe for target 'path_check' failed
make: *** [path_check] Error 1
➜  go-ipfs git:(master) docker run -ti -e GOPATH=/usr/local/ -v $(pwd):/usr/local/src/github.con/ipfs/go-ipfs/ -w /usr/local/src/github.con/ipfs/go-ipfs/ qnib/golang make build
go-ipfs must be built from within your $GOPATH directory.
expected '' but got '/usr/local/src/github.con/ipfs/go-ipfs'
Makefile:44: recipe for target 'path_check' failed
make: *** [path_check] Error 1
➜  go-ipfs git:(master)
@RichardLitt
Copy link
Member

cc @lgierth

@ghost ghost self-assigned this Jul 14, 2016
@whyrusleeping
Copy link
Member

I think this might be because we dont yet handle the GOPATH variable having multiple entries. (IIRC we had a fix, and then it later got reverted).

This should be addressed, @Kubuxu @lgierth was an issue filed to fix this after that last one was reverted?

@Kubuxu
Copy link
Member

Kubuxu commented Jul 15, 2016

#2947

The mistake we made in that last PR is that the path separator is different for Unix and Windows (: vs ;). I think it we fixed that, then that last PR would be OK.

@ChristianKniep
Copy link
Contributor Author

Works for me... Thanks y'all...

$ docker run -ti --rm -v $(pwd):/usr/local/src/github.com/ipfs/go-ipfs/ \
                       -w /usr/local/src/github.com/ipfs/go-ipfs/ qnib/golang make build
$ mv cmd/ipfs/ipfs 
docker run -ti --rm -v $(pwd):/usr/local/src/github.com/ipfs/go-ipfs/ \
                       -w /usr/local/src/github.com/ipfs/go-ipfs/ qnib/alpn-go-dev make build

https://github.com/qnib/go-ipfs/releases/tag/0.4.3-dev

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

No branches or pull requests

4 participants