-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/go: get is broken, old git cannot accept --no-show-signature parameter #26501
Comments
I'm also experiencing this, on the go1.11beta2 branch:
Can't seem to get much working at all, where it was working in previous versions. It also seems that the result is dependent on the contents of the mod cache. While bisecting, if I take an old version of Working around that issue by chmodding the And therein lies the issue:
For what it's worth, I'm on an Ubuntu 16.04 LTS release. |
The problem come from git version i has 2.8.2 and failed, i uprade to 2.18 and it's working. |
This is a side-effect of https://golang.org/cl/123958 (the fix that went in for #26388). |
I stumbled over the same issue and I found the fact that go doesn't report anything about a failing command troublesome. I needed to use If possible please also extend |
A possible fix for the original issue could be to use |
-c paramater in "git log" means something different: https://git-scm.com/docs/git-log/2.6.5#git-log--c --no-show-signature was introduced in git 2.10.0, roughly 2 years ago. |
git -c log.showsignature=false log ? |
Change https://golang.org/cl/125315 mentions this issue: |
@ysmolsky This would be a parameter to |
@zegl, yes, I was wrong! Sorry for brining in the confusion in a rush. I see that CL was created, so all is good. |
@ysmolsky
Linux distros have long term support but hold back minor releases from users. Example https://packages.ubuntu.com/search?keywords=git on ubuntu unless you are on the latest LTS that was released April 26th, 2018 then you are on this "old" version of git. |
Oh wow. Sorry for this. Was moving across countries. Would have responded sooner otherwise. :( |
I encountered this issue today (I'm using a stock version of Ubuntu 16.04). It's made harder to diagnose by the fact that this TODO from src/cmd/go/internal/modload.go remains unaddressed:
This means that we don't get to see the actual error encountered ( My git version is 2.7.4. |
Im looking at the CL https://go-review.googlesource.com/c/go/+/125315 It looks like it just changes the param it sends to git without any test or CI changes. Shouldn't this be paired with a test update so we can avoid shipping a bug that is this breaking in the future? Example -- pin git in the CI environment to 2.7.4 (current git on ubuntu 16) so if someone introduces a change that depends on a new git feature it bombs before merging. nvm it was merged. :"( |
Sorry, we're simply not set up to test against all specific git versions. We depend on finding a sequence of commands that works with all git versions and sticking with it. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
A simple main.go with a dependency to test
go mod
What did you expect to see?
no error on run
What did you see instead?
thanks
I don't have this error on linux box
The text was updated successfully, but these errors were encountered: