gurp...@gmail.com wrote: "The error occurs because the repo got a new branch since your last go get."
...right ... but look how many errors, one have to manually get "fixed" in order get a dependency updated. $ go get -u github.com/dancannon/gorethink # cd /opt/gocode/src/github.com/Sirupsen/logrus; git pull --ff-only >From https://github.com/Sirupsen/logrus 08a8a7c..3ec0642 master -> origin/master You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <remote> <branch> package github.com/Sirupsen/logrus: exit status 1 # cd /opt/gocode/src/github.com/cenk/backoff; git pull --ff-only >From https://github.com/cenk/backoff cdf48bb..b02f2bb master -> origin/master You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <remote> <branch> package github.com/cenk/backoff: exit status 1 # cd /opt/gocode/src/github.com/hailocab/go-hostpool; git pull --ff-only You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <remote> <branch> package github.com/hailocab/go-hostpool: exit status 1 # cd /opt/gocode/src/gopkg.in/dancannon/gorethink.v2; git pull --ff-only >From https://gopkg.in/dancannon/gorethink.v2 e75f34b..016a1d3 master -> origin/master b2c14ad..016a1d3 develop -> origin/develop * [new tag] v2.2.2 -> v2.2.2 >From https://gopkg.in/dancannon/gorethink.v2 * [new tag] v2.2.1 -> v2.2.1 You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <remote> <branch> package gopkg.in/dancannon/gorethink.v2/encoding: exit status 1 # cd /opt/gocode/src/gopkg.in/fatih/pool.v2; git pull --ff-only You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <remote> <branch> package gopkg.in/fatih/pool.v2: exit status 1 On Friday, October 14, 2016 at 6:17:14 PM UTC+2, gurp...@gmail.com wrote: > > cd $GOPATH/src/github.com/mattn/go-sqlite3; git pull --ff-only origin > master > > Add `origin master` suffix to the command suggested by the error. (master > or otherwise) > > The error occurs because the repo got a new branch since your last go get. > > On Saturday, May 28, 2016 at 11:12:27 PM UTC+5:30, Tong Sun wrote: >> >> How to fix the "You are not currently on a branch" error for `go get`? >> >> $ go get -u github.com/mattn/go-sqlite3 >> # cd .../src/github.com/mattn/go-sqlite3; git pull --ff-only >> From https://github.com/mattn/go-sqlite3 >> * [new branch] gh-pages -> origin/gh-pages >> bbd33c0..38ee283 master -> origin/master >> * [new branch] systemlib -> origin/systemlib >> * [new tag] v1.0.0 -> v1.0.0 >> * [new tag] v1.1.0 -> v1.1.0 >> You are not currently on a branch. >> Please specify which branch you want to merge with. >> See git-pull(1) for details. >> >> git pull <remote> <branch> >> >> package github.com/mattn/go-sqlite3: exit status 1 >> >> >> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.