haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.58k stars 685 forks source link

Cabal init first example with git readCreateProcessWithExitCode #10169

Open phobo3s opened 1 week ago

phobo3s commented 1 week ago

i am on windows and i have git installed systemwide. tried to run cabal. i downloaded ghcup and starting to use cabal but there was an error when i try to use cabal init.

image

MSYS2 has no git installed but my system has git so when i try to "cabal init" it gives git error. I am not a professional so...

this workaround has worked by the way: image

thank you jasagredo

Mikolaj commented 1 week ago

We discussed in the channel briefly and IMHO it would be fine to just continue if git is not present. The way it's used in cabal init is not crucial, after all, just a convenience, so probably not even a warning is needed.

jasagredo commented 1 week ago

I assume git is used to get the default user name and email. If git is not present then we could just suggest no default, but do not crash.