go get with Azure Devops on premise?

64 views
Skip to first unread message

Johann Höchtl

unread,
Nov 11, 2022, 3:08:24 PM11/11/22
to golang-nuts
Hi,

we are using Azure Devops server
Version Azure DevOps Server 2020 Update 1.1
on premise.

The server is not accessible from the internet.
The web server uses integrated authentication for access.

Browsing a git repository from a web browser looks like this:

I can successfully use git with ssh enabled. For the above aconcreteProject git remote -v says:

origin  ssh://servername.yada.yada:22/tfs/CompanyCollection/aconcreteProject/_git/ aconcreteProject   (fetch)

push and fetch work without issues.

When I run

go install servername.yada.yada/tfs/CompanyCollection/_git/aconcreteProject@latest

it responds with

go: servername.yada.yada/tfs/CompanyCollection/_git/aconcreteProject@latest: unrecognized import path " servername.yada.yada/tfs/CompanyCollection/_git/aconcreteProject  ": reading https://servername.yada.yada/tfs/CompanyCollection/_git/aconcreteProject?go-get=1: 401 Unauthorized

I have not yet setup environment variable GOPRIVATE
I have not yet setup insteadOf in .gitignore (to actually use ssh instead of https)

Will I be able to use Devops Server 2020 Update 1.1 to go get / go install packages?
What do I have to set GOPRIVATE to, if my intention is to finally arrive at an import prefix of servername.yada.yada//tfs/CompanyCollection/aconcreteProject  (do I have to hint go get to use git and append .git?)

Thanks!
Reply all
Reply to author
Forward
0 new messages