glide-report icon indicating copy to clipboard operation
glide-report copied to clipboard

get get fails

Open ghost opened this issue 9 years ago • 3 comments

go 1.7

x-MacBook-Pro:src apple$ go env GOARCH="amd64" GOBIN="/Users/apple/workspace/go/bin" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/apple/workspace/go" GORACE="" GOROOT="/usr/local/go" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" CC="clang" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/go-build607909689=/tmp/go-build -gno-record-gcc-switches -fno-common" CXX="clang++" CGO_ENABLED="1" x-MacBook-Pro:src apple$

x-MacBook-Pro:src apple$ go get -u github.com/Masterminds/glide-report
# cd /Users/apple/workspace/go/src/github.com/codegangsta/cli; 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/codegangsta/cli: exit status 1
x-MacBook-Pro:src apple$ 



ghost avatar Sep 05 '16 23:09 ghost

I'm not able to reproduce this.

go get drops down into git to fetch something. It can do one of two things...

  • For new clones it runs git clone {repo} {dir}
  • Downloading updates it runs git pull --ff-only

If you've altered either of these commands on your own it can cause go get to behave in unintended ways. Have you made any custom changes to git that could cause this?

mattfarina avatar Sep 06 '16 14:09 mattfarina

I just upgraded git to latest via brew. made no difference.

ghost avatar Sep 07 '16 06:09 ghost

its so weird because the code is such standard golang package structure.

ghost avatar Sep 07 '16 06:09 ghost