-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: cannot use 'go get -u' after commit bc1f9d20b40998b87c9a5f56f2b22595de65c2d4 #13206
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
Comments
I can't reproduce with git version 2.6.2 at least. I haven't tested more than that. |
'git pull --depth=1 --ff-only' also fails on Ubuntu 14.04 LTS (git version 1.9.1) but succeeds on FreeBSD 10.something with git 2.6.1, and on Fedora 23 with 2.5.0 (where it prints the extra line of output). Based on the git 2.5.0 changelog I think the fundamental fix for this issue was made in 2.5.0, although it may have been refined later. (One change is '"git pull" has become more aware of the options meant for underlying "git fetch" and then learned to use parse-options parser'.) |
Here's a repro: https://travis-ci.org/Azure/go-autorest/builds/90569740
|
We have kind of same issue when using travis-ci and it's also having problem when try to https://travis-ci.org/twstrike/coyim/jobs/90568623 |
I was able to reproduce it with the following on a mac with a previously cloned unshallow golang.org/x/tools repo.
I am trying to understand what As a side note, the current behavior of /cc @rsc |
I just found out this is only the |
CL https://golang.org/cl/16832 mentions this issue. |
Debian 8.2 comes with git 2.1.4 that doesn't support |
After commit bc1f9d2, 'cmd/go: use shallow clones for new git checkouts', it's no longer possible to use 'go get -u'. Attempts to do so error out with a usage error from git:
Ordinary 'go get' (still) works.
My version of git is 'git version 2.4.3', which is the standard Fedora Linux 22 package (I'm on x86_64).
Experimentally, running 'git pull --ff-only --depth=1' does not error out. However I don't know if it behaves correctly (ie, forces fast forward only merges), and it prints extra output that 'git pull --ff-only' does not:
(Thus, simply switching the order here may not be the correct fix.)
The text was updated successfully, but these errors were encountered: