-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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 not using sshcommand configured in ~/.gitconfig #71482
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Comments
please show a complete reproducer. |
Description has been updated to provide full reproducing steps in the latest docker image. |
cmd/go sets |
@seankhliao I think that's something we should try. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version go1.23.4 linux/amd64
Output of
go env
in your module/workspace:What did you do?
This is exactly the same as #65041 with thedifference that this issue concerns the global gitconfig
~/.gitconfig
instead of the local.git/config
, recreated as #65041 was closed due to the particular decision to ignore the local configuration.I use a custom
core.sshcommand
configured at scope/originglobal file:/root/.gitconfig
, but Go (ondocker run golang:1.23-alpine3.20
, withapk add git
2.45.2) ignores the command I configured. I have to doGIT_SSH_COMMAND=$(git config core.sshcommand) go mod download
to workaround this.What did you see happen?
What did you expect to see?
The global gitconfig should be directly read by the Go command instead of separately configuring individual commands.
The text was updated successfully, but these errors were encountered: