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
Describe the bug
Unhandled exception is thrown when running a Github pipeline with Versioning.NET
Unhandled exception. System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
---> System.DllNotFoundException: Unable to load shared library 'git2-106a5f2' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libgit2-106a5f2: cannot open shared object file: No such file or directory
To Reproduce
Steps to reproduce the behavior:
Got to Github
Create a new pipeline
Try running Versioning.NET on your project, as described in the wiki
Expected behavior
Everything should work correctly, and new version is computed as expected
Hi @cdavernas, thanks for submitting this issue. Unfortunately, I don't have time to work on this until next week, but I believe that you can change your agent specification from ubuntu-latest to a lower version of ubuntu or use windows-latest as a temporary work around. Let me know if this helps or if changing the agent specification is not possible for you.
Hey @cdavernas, it turns out that LibGit2Sharp outputs a runtimes folder where the supported native binaries are copied. When considering an agent runtime, it'll have to come from this list:
There's nothing I can do in this project to make-up for this, so I'm closing this issue.
You can read more about this on their GitHub page.
Describe the bug
Unhandled exception is thrown when running a Github pipeline with Versioning.NET
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Everything should work correctly, and new version is computed as expected
Additional information
The pipeline that fails:
The text was updated successfully, but these errors were encountered: