-
Notifications
You must be signed in to change notification settings - Fork 697
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 fails with 'no package name provided' if name is already taken on hackage #7273
Comments
Does this happen in any directory or just in ones with specific names? |
@fgaz wow.. it's... very interesting... I've tried in a number of directories and they work, but if I create a directory named |
It's probably because there already is package with the name like that on hackage: http://hackage.haskell.org/package/monarch |
Oh wow, that does sound like the issue indeed |
The fix seems relatively recent. I'll try cabal 3.4 rc5 |
Yeah, this is the dumb "if the package name already exists, it'll crap out with no reasonable error" workflow. I'm adding this to my work on #7265 |
Please update the title of this issue to something less generic, e.g. "Cabal init fails with 'no package name provided' if name is already taken on hackage". |
This issue is still appearing with cabal I named the directory |
Hi @KristianBalaj, Hi! It works fine on master branch (to be released as 3.8; I haven't tried with 3.6.2). It asks you whether you want to name the package so anyway and then proceeds fine. Please confirm. |
@Mikolaj |
@KristianBalaj: thank you for checking. I guess you need to upgrade? |
Yeah sure, I was just reporting that in that version of cabal it is still an issue. |
Thank you again. I guess you may need (regardless of upgrading) to run |
Describe the bug
When I do
cabal init
this doesn't prompt me for anything and just dies.explicitly specifying interactive mode gets:
and the cabal file is never created. Only
To Reproduce
Steps to reproduce the behavior:
Please use version-prefixed commands (e.g.
v2-build
orv1-build
) to avoid ambiguity.Expected behavior
A clear and concise description of what you expected to happen.
System information
cabal
,ghc
versions:3.2.0.0
and8.8.4
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: