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
(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 use git clone and go get.
I would expect GCM behave the same as SSH.
Actual behavior
configured GOPRIVATE to include private repo (i.e. orgname.visualstudio.com/orgname/*)
configured git to use credentialType=oauth and credentialStore=gpg
There's an extensive discussion in golang/go#26232 with a proposal and PoC that defines "GOAUTH plugins must return a HttpCredential object as JSON over stdout" as the protocol. There are reference implementations of GOAUTH plugins in golang/tools cmd/auth
I think go can download modules from dev.azure.com using git with git-credential-manager but it is sensitive to configuration.
I expect the same would be true for orgname.visualstudio.com.
Also check that the go module path is correct - in particular the path required for dev.azure.com seems to be:
dev.azure.com/orgname/projname/_git/reponame.git/subdir
(note the /_git/ part).
Suggested steps to check the go module path:
Open the repo web page for the Azure DevOps project, click clone and copy the HTTPS URL.
Check that the URL works with git clone.
Check that the Go module has the same format as the HTTPS URL.
I think go can download modules from dev.azure.com using git with git-credential-manager but it is sensitive to configuration.
For the record: I also use the same configuration to go-get private dev.azure.com modules (with a different credential.helper path). It works well for me.
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: