-
Notifications
You must be signed in to change notification settings - Fork 704
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 if folder name exists on hackage
#6236
Comments
I second this. I just got this error as well and it's very confusing and gives no indication of what is actually going on |
I was just bit by this one and if I hadn't found the issue googling it could have wasted a bit of time. |
This appears to be a regression; previously
|
i would close it when the mentioned pr is released |
As a general practice I would recommend closing tickets when the prs resolving them are merged, not when a cabal with the pr merged is actually released. It makes ticket management much saner. |
Yeah, i forgot we have milestones here to signal the issue is fixed for some release |
This was fixed in #7344 yes |
this error is back. using cabal-install version 3.6.2.0 |
Hi @weihsiu, I think we had a wrong milestone set, suggesting the fix has been merged to 3.6.2, while it's slated for 3.8. Could you perhaps try with the master branch? |
np, i just wanted to report the issue. as long as it will be fixed, i am cool. |
The issue is alive as of 2023.03.10 |
@rkuprov what version of cabal are you using? |
|
Had to do the |
@rkuprov use a version of cabal that was released in the last 2 years and you'll be set. |
My bad. I wrongly assumed that GHCup would use everything latest. |
@rkuprov unfortunately, ghcup has its own notion of |
Correct. GHCup is a distribution channel just like nixpkgs, brew or some ubuntu ppa. As such it has absolute autonomy regarding which versions are recommended. To always and only get upstream bindists, you can use a different channel: https://github.com/haskell/ghcup-metadata/blob/develop/ghcup-vanilla-0.0.7.yaml In this channel I can make Check out the configuration: https://github.com/haskell/ghcup-hs/blob/c20deceaa8189a1f3034335759b84132f9a9ef82/data/config.yaml#L59 |
Describe the bug
If
cabal init
is run inside a folder that has the same name as a package on hackage, cabal throws an error:Error: no package name provided.
To Reproduce
This also happens for a hidden folder (
.lens
).It does not happen if the folder name does not exist on hackage:
Expected behavior
I would except
cabal
to at least give a more precise error message or better proceed with only a warning.System information
The text was updated successfully, but these errors were encountered: