Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cabal init first example with git readCreateProcessWithExitCode #10169

Open
phobo3s opened this issue Jul 3, 2024 · 2 comments
Open

Cabal init first example with git readCreateProcessWithExitCode #10169

phobo3s opened this issue Jul 3, 2024 · 2 comments

Comments

@phobo3s
Copy link

phobo3s commented Jul 3, 2024

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
Copy link
Member

Mikolaj commented Jul 3, 2024

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants