-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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 with GIT_CONFIG ignores env variable #42055
Comments
Can you run |
@cagedmantis, |
@cagedmantis, Do you need additional info? It will be great feature for ability to work in multiple environments setup when use |
I use |
@valery-barysok Thanks for the additional information. I am not able to reproduce this, even with some |
@valery-barysok, The |
@valery-barysok, can you confirm that your |
@bcmills, I can confirm that |
@bcmills, I debugged go source code and seems like issue actually happens inside git itself when go executes I will continue to investigate. |
I resolved the issue by using XDG_CONFIG_HOME env variable instead of GIT_CONFIG. So GIT_CONFIG is wrong way to provide custom place for git config file because it works with limited list of commands. |
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?
What did you expect to see?
go get
takes into account GIT_CONFIG env variableWhat did you see instead?
The text was updated successfully, but these errors were encountered: