You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/origin global file:/root/.gitconfig, but Go (on docker run golang:1.23-alpine3.20, with apk add git 2.45.2) ignores the command I configured. I have to do GIT_SSH_COMMAND=$(git config core.sshcommand) go mod download to workaround this.
What did you see happen?
/module # go mod download 2>&1 | head -3go: my.private/[email protected]: reading my.private/repo/go.mod at revision v1.2.3: git ls-remote -q origin in /go/pkg/mod/cache/vcs/xxxxxx: exit status 128: Host key verification failed. fatal: Could not read from remote repository./module # GIT_SSH_COMMAND=$(git config core.sshcommand) go mod download(successful)
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:
Go version
go1.23 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: