Installation requires cherry picked version of git on Windows

Is there a reason I need to use a cherry picked version of git when installing Swift toolchain in windows? I have git installed and do not want to mess with that? Is there an alternative way to install that does not force this choice? If I prevent it from installing git it errors out? Is this intended behavior? Is there an alternative installer for those who have git installed already?

https://www.swift.org/install/windows/#alternative-install-options

See Manual Installation section at left.

I used winget to try and install it. It tried to install git. Git is already installed. It does not need to be installed again. Why do you need to install a seperate third party app to use Swift? Why not check to see if it is already installed?

About:ME http://about.me/jamescrutchley

"I like to tell people I have the heart of a small boy. Then I say it's in a jar on my desk."

  • Stephen King

I would recommend that you do not use automation then and instead use the manual installation method that gives you the control over that behaviour. This is a quirk of winget, not of the installer.

1 Like

Thank you. I missed that there was a manual installation method. My bad. I will go look that up and try to install it that way. I appreciate the help you have given me.

The --skip-dependencies WinGet flag can also be used to avoid installing the dependencies of the Swift WinGet package (VCRedist, Git, and Python).