Code Monkey home page Code Monkey logo

Comments (5)

Raphire avatar Raphire commented on June 27, 2024

Heya,

WinGet actually checks if git is already installed, this even works in cases where WinGet was not used to install it. I just confirmed this behaviour on my windows 10 system that had git manually installed.

Have you run into issues with this?

from win11debloat.

lxl66566 avatar lxl66566 commented on June 27, 2024

My git was installed by scoop: scoop install git. Winget did not detect it, and started to download:

C:\Users\lxl>where git
D:\scoop\shims\git.exe

C:\Users\lxl>git -v
git version 2.45.1.windows.1

C:\Users\lxl>winget -v
v1.7.11261

C:\Users\lxl>winget install git.git --accept-package-agreements --accept-source-agreements --disable-interactivity --no-upgrade
Found Git [Git.Git] Version 2.45.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/git-for-windows/git/releases/download/v2.45.1.windows.1/Git-2.45.1-64-bit.exe
  █▊                              4.00 MB / 64.7 MB
Cancelled
Terminate batch job (Y/N)? Y
  • Additional info: OS Version: windows 11 23H2 22631.3447

I tried on another PC that installed git by official installer, and winget does detect it. The difference may be that the installer writes package information to the Windows registry, but Scoop does not?

from win11debloat.

Raphire avatar Raphire commented on June 27, 2024

Ooh interesting.

I'm guessing this is due to the fact that scoop installs apps in an unusual way, keeping them isolated in a scoop folder.

Seems like we'll need to manually check if git is installed after all! Thanks for bringing this to my attention 😃

from win11debloat.

Raphire avatar Raphire commented on June 27, 2024

@lxl66566 This issue should now be resolved as of 9401de8. Could you please confirm on your end that it's now detecting git correctly?

from win11debloat.

lxl66566 avatar lxl66566 commented on June 27, 2024

Yes, now it works well. Thank you!

from win11debloat.

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.