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

get get fails #3

Open
ghost opened this issue Sep 5, 2016 · 3 comments
Open

get get fails #3

ghost opened this issue Sep 5, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 5, 2016

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$ 



@mattfarina
Copy link
Member

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?

@ghost
Copy link
Author

ghost commented Sep 7, 2016

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

@ghost
Copy link
Author

ghost commented Sep 7, 2016

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

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

1 participant