You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cabal init fails if folder name exists on hackage #6236
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.
Reacted by Mikolaj Konarski, ptkato and Emily Pillmore
@rkuprov unfortunately, ghcup has its own notion of recommended release, which it uses to pick default versions, and the lead maintainer @hasufell explicitly refused to bump recommended cabal to 3.8 citing several regressions on 3.8. In my opinion, there were many more bug fixes in that release that justify a handful of regression, but oh well...
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.
Activity
naglalakk commentedon Sep 14, 2019
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
codygman commentedon Nov 10, 2019
I was just bit by this one and if I hadn't found the issue googling it could have wasted a bit of time.
hvr commentedon Nov 10, 2019
This appears to be a regression; previously
cabal initwould complain to you about this during the interactive questionnaire:fgaz commentedon May 27, 2021
@emilypi #7344 fixes this, right?
jneira commentedon Jul 13, 2021
i would close it when the mentioned pr is released
gbaz commentedon Jul 13, 2021
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.
4 remaining items
weihsiu commentedon Mar 10, 2022
this error is back. using cabal-install version 3.6.2.0
Mikolaj commentedon Mar 10, 2022
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?
weihsiu commentedon Mar 10, 2022
np, i just wanted to report the issue. as long as it will be fixed, i am cool.
Fix cabal init name deduction
Fix cabal init name deduction
rkuprov commentedon Mar 11, 2023
The issue is alive as of 2023.03.10
ulysses4ever commentedon Mar 11, 2023
@rkuprov what version of cabal are you using?
rkuprov commentedon Mar 11, 2023
cabal --version cabal-install version 3.6.2.0 compiled using version 3.6.2.0 of the Cabal libraryrkuprov commentedon Mar 11, 2023
Had to do the
init --interactiveand force ignore the warning about the package already present on Hackage.emilypi commentedon Mar 11, 2023
@rkuprov use a version of cabal that was released in the last 2 years and you'll be set.
rkuprov commentedon Mar 11, 2023
My bad. I wrongly assumed that GHCup would use everything latest.
ulysses4ever commentedon Mar 11, 2023
@rkuprov unfortunately, ghcup has its own notion of
recommendedrelease, which it uses to pick default versions, and the lead maintainer @hasufell explicitly refused to bump recommended cabal to 3.8 citing several regressions on 3.8. In my opinion, there were many more bug fixes in that release that justify a handful of regression, but oh well...hasufell commentedon Mar 12, 2023
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
latestandrecommendedequivalent, but we will close bug reports as WONTFIX if you use that channel.Check out the configuration: https://github.com/haskell/ghcup-hs/blob/c20deceaa8189a1f3034335759b84132f9a9ef82/data/config.yaml#L59