Git Product home page Git Product logo

Comments (4)

dworthen avatar dworthen commented on May 31, 2024

I updated my git from version 2.40 to 2.42 and that resolved the issue. Is git a requirement for users to use gov4git?

from gov4git.

petar avatar petar commented on May 31, 2024

There are a couple of things here.

Overall the new release could not work with your old cache because the format of the cache directory changed.

But thanks to this problem, we are discovering that go-git uses a local git binary in some cases.

I dug into the go-git code ade and discovered https://github.com/go-git/go-git/blob/master/plumbing/transport/file/client.go#L19 that for local URLs which use the "file protocol", go git relies on the local binary.

This is annoying and I've inquired if this can be fixed. But for now I'd assume it cannot be fixed in the short term.

Other users go-git/go-git#614 on the go-git issues board have also experienced hangs during erroneous conditions during local repo access.

I wonder if we can pursue some lightweight solution for M1. For instance:

  • require a newer version of git installed, or
  • package git in the binary app (probably too messy?)

from gov4git.

petar avatar petar commented on May 31, 2024

FYI I am investigating remedies here go-git/go-git#838

from gov4git.

petar avatar petar commented on May 31, 2024

I prepared an RC that configured go-git not to use an external git binary https://github.com/gov4git/gov4git/releases/tag/v1.1.8-rc-nogitbinary

This requires comprehensive testing on Windows and through the desktop app before we have confidence to adopt it.

The go-git native approach is not 100% compatible with the alternative of using git binary 2.42, however the incompatibilities do not seem to fall within the use cases of gov4git.

from gov4git.

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.