-
Notifications
You must be signed in to change notification settings - Fork 654
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
LibGit2Sharp.Core.NativeMethods threw an exception. #2615
Comments
I assume this is a compatibility issue in LibGit2Sharp and therefore nothing we can do anything about in GitVersion. 🤷🏽 |
Thanks for the quick response. Where shall I raise this issue then? AzureDevOps tasks repo? |
According to @bording in libgit2/libgit2sharp#1703 (comment):
So I guess we'll have to wait for a new release of LibGit2Sharp and hope it will remedy the problem. |
Thanks. I will keep an eye on it :) |
If I'm understanding correctly, this report seems to be saying that the version of GitVersionTask being used is 5.0.1. That version is never going to work with Ubuntu 20.04 because of the bundled LibGit2Sharp in 5.0.1. The latest version of GitVersion has started using LibGit2Sharp 0.27.0-preview-0096, right? You'll have to be using that version if you want to run on Ubuntu 20.04. |
@bording you are correct, we updated to |
@annie-sumpter In that case, the solution is that you need to be using a newer version of GitVersion if you want it to work on Ubuntu 20.04. |
Thanks @bording. We use GitVersion@5 task in azure devops. I am not aware of possibility to setup an explicit version of GitVersion to be used in the task. |
@annie-sumpter GitVersion task is deprecated, you can use https://github.com/GitTools/actions/blob/main/docs/examples/azure/gitversion/index.md instead |
Thanks @arturcic I will have a look. |
Sorry for adding to the confusion. I would probably have thought twice about it if libgit2/libgit2sharp#1703 was closed as fixed and connected to a release. Yes, @annie-sumpter, please move to the supported and latest AzDO task. You can find it linked from the documentation. |
Thanks all for your advice. It was really helpful. I am posting the solution here for anyone having the same issue.
with
|
@annie-sumpter great it worked for you, closing this issue |
Describe the bug
We use GitVersion task in multiple AzureDevOps pipelines - azure-pipelines.yaml. This tasks is now failing for all pipelines which use the latest ubuntu vmImage (ubuntu 20.04). The task is not failing on ubuntu 18.04 nor windows image.
The error looks similar to #1852 which is marked as resolved in 5.3.2 version. However Azure DevOps uses 5.0.1 version.
Expected Behavior
GitVersion task should succeed.
Actual Behavior
GitVersion task fails with this error:
Context
We temporarily changed our pipelines to use ubuntu 18.04 instead of 20.04 until this is fixed.
Steps to Reproduce
Run a GitVersion task in Azure DevOps pipeline with vmImage 20.04
The text was updated successfully, but these errors were encountered: