Git Product home page Git Product logo

Comments (6)

johnnyasantoss avatar johnnyasantoss commented on August 15, 2024

This is the dockerfile that I'm using https://github.com/johnnyasantoss/JsonFluentMap/blob/testes-unitarios/Dockerfile

from cake_git.

johnkors avatar johnkors commented on August 15, 2024

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.

johnkors avatar johnkors commented on August 15, 2024

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.

devlead avatar devlead commented on August 15, 2024

Seems to be related to
libgit2/libgit2sharp#1533

from cake_git.

davidvedvick avatar davidvedvick commented on August 15, 2024

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.

johnkors avatar johnkors commented on August 15, 2024

The solution given here helped me out.

#68 (comment)

from cake_git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.