ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
16.17k stars 3.02k forks source link

Can't install go-ipfs using go get #4309

Open haiitch opened 7 years ago

haiitch commented 7 years ago

not applicable

documentation, repository, infrastructure

Critical - System crash, application panic.

Description:

ipfs can't be installed with go get the way the README says. Output follows:


$ go get -x -u -d github.com/ipfs/go-ipfs/
cd /home/vxv/go/src/github.com/ipfs/go-ipfs
git config remote.origin.url
cd /home/vxv/go/src/github.com/ipfs/go-ipfs
git pull --ff-only
# cd /home/vxv/go/src/github.com/ipfs/go-ipfs; git pull --ff-only
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

package github.com/ipfs/go-ipfs: exit status 1
$ 
whyrusleeping commented 7 years ago

Do you already have an ipfs repo cloned? It looks like you might have cloned the ipfs repo already, and checked out a different branch. Which makes those instructions not work as intended. Try:

cd $GOPATH/src/github.com/ipfs/go-ipfs
git checkout master
git pull origin master
make install