Comments (6)
This is the dockerfile that I'm using https://github.com/johnnyasantoss/JsonFluentMap/blob/testes-unitarios/Dockerfile
from cake_git.
I have the same issue, @patriksvensson .
Repro non-working Cake.Git on Linux: https://travis-ci.org/johnkors/cakegit/jobs/351972745#L2503
from cake_git.
A workaround/fix from @devlead on gitter.im: Using a Ubuntu base image instead of say Debian based ( microsoft/sdk-2.1
is Debian based when on Linux containers).
Example of working Ubuntu image: FROM devlead/bitbucket-pipelines-dotnet
.
from cake_git.
Seems to be related to
libgit2/libgit2sharp#1533
from cake_git.
I'm getting this issue as well. I've tried the posted workaround, and it had no effect :( here's the error I'm getting (note this is gitversion throwing the error):
========================================
GetVersion
========================================
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.DllNotFoundException: lib/linux/x86_64/libgit2-baa87df.so
at (wrapper managed-to-native) LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
at LibGit2Sharp.Core.NativeMethods+LibraryLifetimeObject..ctor () [0x00006] in <1a5aafd5a5444cd6a1420741ccbb6f8a>:0
at LibGit2Sharp.Core.NativeMethods..cctor () [0x00058] in <1a5aafd5a5444cd6a1420741ccbb6f8a>:0
--- End of inner exception stack trace ---
at LibGit2Sharp.Core.NativeMethods+LibraryLifetimeObject.Finalize () [0x00000] in <1a5aafd5a5444cd6a1420741ccbb6f8a>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.DllNotFoundException: lib/linux/x86_64/libgit2-baa87df.so
at (wrapper managed-to-native) LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
at LibGit2Sharp.Core.NativeMethods+LibraryLifetimeObject..ctor () [0x00006] in <1a5aafd5a5444cd6a1420741ccbb6f8a>:0
at LibGit2Sharp.Core.NativeMethods..cctor () [0x00058] in <1a5aafd5a5444cd6a1420741ccbb6f8a>:0
--- End of inner exception stack trace ---
at LibGit2Sharp.Core.NativeMethods+LibraryLifetimeObject.Finalize () [0x00000] in <1a5aafd5a5444cd6a1420741ccbb6f8a>:0
An error occurred when executing task 'GetVersion'.
Error: One or more errors occurred.
GitVersion: Process returned an error (exit code 255).
from cake_git.
The solution given here helped me out.
from cake_git.
Related Issues (20)
- Access violation calling GitHasUncommitedChanges HOT 8
- Allow to use with Git CLI HOT 3
- Add Cake aliases to manage Git remotes
- Clone test - The type initializer for 'ManagedHttpSmartSubtransportStream' threw an exception HOT 10
- Cake Git is not working with Azure/VSTS (Error 401 : unauthorized) because of libgit2sharp Issue 1871
- Expose git describe --first-parent option
- Update Cake.Git add-in to target Cake v2.0.0
- Skip checking certificate
- Cake.Git v2.0.0 breaks IntelliSense in VS Code HOT 7
- Version 2.0.0 causes `dotnet publish` to fail HOT 1
- Simple way of getting location of devenv.exe HOT 3
- `GitLogTip` only works in git repo's root HOT 1
- `GitCommit` without name and email HOT 1
- Apple Silicon support HOT 7
- Update Cake.Git to target Cake.Core 3.0.0 and net7.0 TFM HOT 1
- Cake.Git 3.0.0 HOT 4
- Document steps to release new versions of Cake.Git
- GitHasUncommitedChanges returns true for clean repo
- AccessViolationException when calling tag.Annotation.Message
- Update to LibGit2Sharp 0.29.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cake_git.