GithubHelp home page GithubHelp logo

Comments (9)

bording avatar bording commented on June 2, 2024

What is the actual exception error message?

My guess for the problem is that the way you are creating the docker image is resulting in the correct native binaries not being included in the image.

from libgit2sharp.

simple0x47 avatar simple0x47 commented on June 2, 2024

I forgot to mention that the exception's message is the following one: Object reference not set to an instance of an object.

from libgit2sharp.

simple0x47 avatar simple0x47 commented on June 2, 2024

The way I am building the docker image is by taking the complete build directory and copying it into the Docker build using the command COPY.

from libgit2sharp.

bording avatar bording commented on June 2, 2024

I forgot to mention that the exception's message is the following one: Object reference not set to an instance of an object.

Based on that, I would check and see if the way you obtaining the values you're passing into Repository.Clone is working when you're running from inside your container. Sound like you're passing a null value in.

from libgit2sharp.

simple0x47 avatar simple0x47 commented on June 2, 2024

I've checked the values passed to Repository.Clone and all of them are valid. This seems to be a strange situation since the same build works correctly on my machine, but once it is Dockerized, it fails.

from libgit2sharp.

simple0x47 avatar simple0x47 commented on June 2, 2024

I tried executing the code on a Linux machine and it seems to be throwing the same exception.

from libgit2sharp.

bording avatar bording commented on June 2, 2024

At this point I'd really need more to go on to be able help further. If you could provide a repo that has a sample project that to reproduce the issue, that would be perfect.

from libgit2sharp.

simple0x47 avatar simple0x47 commented on June 2, 2024

In the end it seems it was due to a missing environment variable by my side which didn't full fill the CloneOptions correctly. So there's nothing wrong with libgit2sharp! Sorry for that!

from libgit2sharp.

bording avatar bording commented on June 2, 2024

Glad to hear you figured it out!

from libgit2sharp.

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.