-
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: go mod download seems now incompatible with git version 1 #51529
Comments
Full log from
|
If the answer is: "please use a system with a modern version of git", that is fair 😄 . But I don't think there was an intention to drop support for git version 1? And/or it might be worth considering updating docs and release notes if so? Edit: A colleague's idea: if git version 1 isn't supported, an explicit version check+fail would be a much nicer user experience. |
CC @bcmills |
Also #51253 and #38373. #38373 (comment) also noted that installing git2 did fix their issue.
See #26746. |
Per #26746 (comment), I do not plan to test against (or add workarounds for) Git versions older than 2.17.6 due to known CVEs and lack of documentation. You are welcome to contribute a CL for compatibility with older versions, but any CL for compatibility should include a reference to the command documentation for the version in question. |
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
)?go env
OutputWhat did you do?
Attempted to fetch/download a module from git via
go mod download
on a rhel7 (git version 1) system:The OS here is rhel7, which ships with git version one:
When fetching this module on a system with git version 2,
go mod download
successfully fetches the module (more details below)What did you expect to see?
go mod download
able to successfully use git version 1 to fetch the module.What did you see instead?
Invoking the logged git command directly:
It seems this version of git doesn't support the
%D
format specifier. I will post the full log in a following comment on this issue.On a system with git version 2:
(Note: I've edited module, github instance and domain names, since these are company private names)
(Note 2: The environment has a git credential helper installed, but I don't think given the successful git access this is relevant)
The text was updated successfully, but these errors were encountered: