-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
GCM won't work for go repo with private modules #1563
Comments
go-git does not currently support credential helper scripts or any other external authentication mechanism (that relies on interactivity). Related:
There's an extensive discussion in golang/go#26232 with a proposal and PoC that defines " |
I think go can download modules from dev.azure.com using git with git-credential-manager but it is sensitive to configuration. In .gitconfig try:
Also check that the go module path is correct - in particular the path required for dev.azure.com seems to be: Suggested steps to check the go module path:
|
For the record: I also use the same configuration to go-get private |
Version
2.4.1
Operating system
Linux
OS version or distribution
Ubuntu 22.04
Git hosting provider(s)
Azure DevOps, GitHub
Other hosting provider
No response
(Azure DevOps only) What format is your remote URL?
https://{org}.visualstudio.com
Can you access the remote repository directly in the browser?
Yes, I can access the repository
Expected behavior
I've been using ssh key on linux (note: ssh won't work on windows with
go get
command), after configured git url.insteadOf, GOPRIVATE, etc, I can usegit clone
andgo get
.I would expect GCM behave the same as SSH.
Actual behavior
go get
won't authenticate against private repoLogs
No response
The text was updated successfully, but these errors were encountered: