GithubHelp home page GithubHelp logo

Comments (11)

alexchandel avatar alexchandel commented on June 10, 2024

It's probably worth it to test portable packages only on systems with clean PATHs.

from chocolatey-packages.

pedrofernandesfilho avatar pedrofernandesfilho commented on June 10, 2024

I have this problem in version 2.7.1. In Windows 10 and 8.1.

from chocolatey-packages.

ferventcoder avatar ferventcoder commented on June 10, 2024

Thanks. If you have a potential fix for this, I would welcome it. Almost all of my locations for testing already have git installed.

from chocolatey-packages.

alexchandel avatar alexchandel commented on June 10, 2024

@ferventcoder Let me try it on a VM...

from chocolatey-packages.

alexchandel avatar alexchandel commented on June 10, 2024

@ferventcoder Still present on 2.7.1 for me.

Given that contents of tools/bin are just:

bash.exe
bash.exe.ignore
git.exe
sh.exe
sh.exe.ignore

and that analyzing it in Dependency Walker shows only Win32 dependences, git.exe must be using its executable path to dlopen the DLLs in tools/mingw64/bin. However what's strange is that it's linked against these at all when there are perfectly good copies in tools/usr/bin/msys-*.

from chocolatey-packages.

alexchandel avatar alexchandel commented on June 10, 2024

@ferventcoder AHAH found it. The problem is our shim. There are four binaries called git.exe, at bin/git.exe, cmd/git.exe, mingw64/bin/git.exe, and mingw64/libexec/git-core/git.exe. Shims to any but the last will work. We create shims for all files ending in git.exe, which means we create 4 shims, and the last one is what remains. So we always luck out. The solution is to create a shim only for cmd/git.exe (or any of the three working exes).

from chocolatey-packages.

alexchandel avatar alexchandel commented on June 10, 2024

@ferventcoder While we're at it, can we add a shim for the /git-bash.exe as well?

from chocolatey-packages.

ferventcoder avatar ferventcoder commented on June 10, 2024

Ah, sweet! Yeah, that sounds like the right approach.

Where is the git-bash.exe at?

from chocolatey-packages.

alexchandel avatar alexchandel commented on June 10, 2024

It's in the root of the archive (e.g. next to /bin and README.portable) and gets unzipped to something like git.commandline/tools/git-bash.exe

from chocolatey-packages.

alexchandel avatar alexchandel commented on June 10, 2024

Would this do it?

  if (!($file.FullName -match '\\cmd\\git.exe$|\\git-bash.exe$|ssh[^\\]*$' )) {

from chocolatey-packages.

alexchandel avatar alexchandel commented on June 10, 2024

Actually we should eliminate the ssh ones. They conflict with win32-openssh.

from chocolatey-packages.

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.