-
Notifications
You must be signed in to change notification settings - Fork 162
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
Azure DevOps repos support #417
Comments
Interesting problem, thanks for opening an issue. We mainly use AWS/GCP internally and are light on Azure experience. Could you clarify what version of git you would normally use on your machine and what OS/version? The reason we went with go-git initially was because it was a pure go implementation. The reason that Flux can do what they are doing is they are controlling a very fine-grained build process to produce an OCI image that runs for a controller to handle the git operations using https://github.com/fluxcd/golang-with-libgit2 and https://github.com/libgit2/git2go from what I can see. We don't have that luxury because we need to support multiple architectures and OSs for the CLI and so running in a very controlled environment like a container isn't possible. Thinking out loud it might be worth just falling back to https://pkg.go.dev/os/exec#example-Cmd.Run and use the host-os git instead for A good summary from someone who tried to fix this in go-git is here: buildpacks-community/kpack#213 (comment). The related PR in that tool that actually swapped go-git -> libgit2 is here: buildpacks-community/kpack#636, but note the ability to control the environment with a container. |
One other note, if you could run |
I'm getting a 400 on a public repo: https://dev.azure.com/me0515/_git/zarf-public-test. |
Yeah, the error is vague, but I saw that before when working with Azure DevOps and go-git issue. The main challenge comes with the |
Agreed re: multi_ack. What are your thoughts on falling back to a host-provided git binary? |
Sorry mate didn't follow. What do you mean by |
Yeah sorry, so basically my proposal (only on the |
@jsburckhardt we're hoping pulumi/pulumi#471 will resolve this (it currently passes for our test azure repo). |
Hi mate, it does solve the issue as far as Git is in the host. I'm working in a small proposal to include git2go in zarf. The same way flux mates use it. The annoying thing is compiling libgit2 but I'll put the details in the doco. Cheers |
Is your feature request related to a problem? Please describe.
Our project hosts the target repos in Azure DevOps. I can see the tool is currently using go-git which doesn't support he Azure DevOps git protocol (libgit2 is required)
Describe the solution you'd like
Should be able to target a
https://dev.azure.com/<sample org>/<sample project>/_git/<sample repo>
linkDescribe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: