Hi,
I’m interested in setting up a private registry on Azure DevOps. I already have several private package there. As a start, I tried to simply
pkg> add https://MyOrg@dev.azure.com/MyOrg/MyProject/_git/MyPackage.jl
“pkg> add” doesn’t seem to like the @ after MyOrg, so I tried
julia> using Pkg; Pkg.add(PackageSpec(url="https://MyOrg@dev.azure.com/MyOrg/MyProject/_git/MyPackage.jl"))
Cloning git-repo `https://MyOrg@dev.azure.com/MyOrg/MyProject/_git/MyPackage.jl`
This prompts me for credentials, but I am confused because I can
$ git clone https://MyOrg@dev.azure.com/MyOrg/MyProject/_git/MyPackage.jl
without credentials. However, even after entering my credentials, “Pkg.add” still fails.
I’m pretty clueless about SSH stuff, but I’m guessing it is related. My command line git seems to be finding my SSH stuff, but Pkg isn’t. How can I fix that?
When I asked on Slack, someone responded:
We use Azure at my job. On Linux, I can only get it to work with SSH, where the “@“ isn’t misunderstood. I haven’t been able to get it to work with plain HTTPS authentication either, it needs a PAT for authentication. It’s a bit annoying, if you use Azure Pipelines, because the pipeline only works with HTTPS. But you can make it work by using git URL rewrites.
That
has me a little concerned because the point of me trying to set this up is so that I could use Azure Pipelines and setting up a pipeline with URL rewrites doesn’t sound like fun (whatever that is).
Any ideas?
If anyone else has experience with Julia and Azure DevOps, I’d appreciate any help. Thank you ![]()