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 arogently assumes names shouldn't collide with those already on Hackage #7909

Closed
TomMD opened this issue Jan 19, 2022 · 11 comments
Closed

Comments

@TomMD
Copy link
Contributor

TomMD commented Jan 19, 2022

Describe the bug

$ cabal init
cabal: The name ____ is already in use by another package on Hackage.

But lots of people use Haskell and cabal outside of the context of what is on Hackage or while building software never intended to be uploaded to hackage. There is no reason to use the entire haskell package set as a deny list.

To Reproduce

mkdir <some name on hackage>
cd $REALLY_COMMON_TERM
cabal init

Expected behavior
Cabal init happens
.

@gbaz
Copy link
Collaborator

gbaz commented Jan 19, 2022

dup of #7273 but despite that issue being closed it still doesn't seem resolved, sigh.

@gbaz
Copy link
Collaborator

gbaz commented Jan 19, 2022

(ah, i see, the fix there was to make the error more informative, this issue is whether the behavior is desired at all or not)

@TomMD
Copy link
Contributor Author

TomMD commented Jan 19, 2022

How about a "force" flag?

@Mikolaj
Copy link
Member

Mikolaj commented Jan 19, 2022

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

Mikolaj commented Jan 28, 2022

@TomMD: were you able to confirm your problem is solved on master branch?

@TomMD
Copy link
Contributor Author

TomMD commented Jan 29, 2022

Yes. I can verify 3.6.2 does not work but HEAD does for me. Thanks!

@TomMD TomMD closed this as completed Jan 29, 2022
@Mikolaj
Copy link
Member

Mikolaj commented Jan 29, 2022

@TomMD: thank you!

@damienstanton
Copy link

I'd second a --force option. This constraint feels like it is in the wrong place; It should be an error at package publish time, not package creation time.

@Mikolaj
Copy link
Member

Mikolaj commented Feb 8, 2022

@damienstanton: hi! do you refer to the behaviour on master branch? If so, could you elaborate how you'd like to change it?

@damienstanton
Copy link

@damienstanton: hi! do you refer to the behaviour on master branch? If so, could you elaborate how you'd like to change it?

No it appears that master does not have this issue, thanks!

@Mikolaj
Copy link
Member

Mikolaj commented Feb 9, 2022

@damienstanton: thank you for confirming.

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