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

make deps not work. #240

Closed
jerry-sl opened this issue Oct 31, 2017 · 5 comments
Closed

make deps not work. #240

jerry-sl opened this issue Oct 31, 2017 · 5 comments

Comments

@jerry-sl
Copy link

jerry-sl commented Oct 31, 2017

follow docments step.

make 
make deps

got results:

successfully found all deps for go-libp2p
  - go-libp2p depends on go-semver (QmcrrEpx3VMUbrbgVroH3YiYyUS5c4YAykzyPJWKspUYLa)
successfully found all deps for go-semver
[done] [install] go-semver                QmcrrEpx3VMUbrbgVroH3YiYyUS5c4YAykzyPJWKspUYLa 0s
  - go-libp2p depends on mdns (QmWSvDKkcno2UyDg13rUBwWfhRsdj7uR3daAq57VoG5QeN)
[1 / 2] fetched dep: go-net
[2 / 2] fetched dep: dns
successfully found all deps for mdns
  - mdns depends on dns (QmWchsfMt9Re1CQaiHqPQC1DrZ9bkpa6n229dRYkGyLXNh)
successfully found all deps for dns
[done] [install] dns                      QmWchsfMt9Re1CQaiHqPQC1DrZ9bkpa6n229dRYkGyLXNh 0s
  - mdns depends on go-net (QmTEmsyNnckEq8rEfALfdhLHjrEHGoSGFDrAYReuetn7MC)
  - Qmaau1d1WjnQdTYfRYfFVsCS97cgD8ATyrKuNoEfexL7JZ not found locally, fetching into /home/jerry/go/src/gx/ipfs/Qmaau1d1WjnQdTYfRYfFVsCS97cgD8ATyrKuNoEfexL7JZ
[get ] [fetch]   go-text                  Qmaau1d1WjnQdTYfRYfFVsCS97cgD8ATyrKuNoEfexL7JZ
[2 / 104] 0sFound previously failed fetch, cleaning up...
  - fetching Qmaau1d1WjnQdTYfRYfFVsCS97cgD8ATyrKuNoEfexL7JZ via ipfs api

computer environments:

$ go version
go version go1.9.2 linux/amd64

$ which go
/usr/local/go/bin/go

$ echo $GOPATH
/home/jerry/go
@Stebalien
Copy link
Member

Hm. It may not have been pinned properly. Could you try again?

@jerry-sl
Copy link
Author

jerry-sl commented Nov 1, 2017

Tried many times, got some result.

My computer was behind firewall, golang.org was blocked. I installed crypto, net, tools, text by first pull down from github.com. Copy $GOPATH/src/github.com/golang/(crypto, net, tools, text) to $GOPATH/src/golang.org/x/(crypto, net, tools, text). Finally use go install to install these package.

$ go install text

failed with error: "can't load package: package text: no Go files in /usr/local/go/src/text"

@Kubuxu
Copy link
Member

Kubuxu commented Nov 1, 2017

@jerry-sl go tools by default work with GOPATH as reference, you have to prefix them with . to get them to use current directory.

@Stebalien
Copy link
Member

My computer was behind firewall, golang.org was blocked.

Is ipfs.io blocked? That's where we try to download gx packages form.

@jerry-sl
Copy link
Author

jerry-sl commented Nov 2, 2017

ipfs.io is not blocked. I try go-libp2p on my mac os x, it worked.
Ubuntu 17.10 still not work.
Now i have a worked box, i will close this issue. Thanks for helps.

@jerry-sl jerry-sl closed this as completed Nov 2, 2017
marten-seemann added a commit that referenced this issue Apr 22, 2022
reuse the same router until we change listeners
marten-seemann pushed a commit that referenced this issue Aug 17, 2022
The mappings in go-cid were maintained by hand and are invalid.
More details in ipfs/go-cid#137

This is switching to go-multicodec which has correct mappings
that are generated, not written by hand.

Co-authored-by: Daniel Martí <mvdan@mvdan.cc>
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

3 participants