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

Tracking issue: spurious cabal "extraneous version range" warning #121

Open
brprice opened this issue Nov 26, 2020 · 3 comments
Open

Tracking issue: spurious cabal "extraneous version range" warning #121

brprice opened this issue Nov 26, 2020 · 3 comments
Labels
tracking This is a tracking issue

Comments

@brprice
Copy link
Contributor

brprice commented Nov 26, 2020

See haskell/cabal#5119

Tracking this here as I keep seeing this and being annoyed by it. At least I now know why!


When configuring the backend testsuite (but not the executable), I see

Warning: The package has an extraneous version range for a dependency on an
internal library: vonnegut -any && ==1.0.0.0, vonnegut -any && ==1.0.0.0. This
version range includes the current package but isn't needed as the current
package's library will always be used.

but this is a lie: we have not got any version range on the vonnegut dep of vonnegut-test.

@hmac
Copy link

hmac commented Jan 15, 2021

This has started to annoy me as well, haha. I'm somewhat amazed that this bug has been around since 2018 and still isn't fixed...

@dhess
Copy link
Member

dhess commented Jan 15, 2021

Is this indeed a Cabal bug, and not something I've specified incorrectly in our .cabal file?

@hmac
Copy link

hmac commented Jan 15, 2021

I'm almost certain it's the cabal bug Ben linked above. We specify vonnegut (the library) as a dependency for the vonnegut executable, without any version bounds. Removing it entirely causes the build to fail, it has to be there. Cabal seems to think we've added the ==1.0.0.0 bound when we definitely haven't.

@dhess dhess transferred this issue from another repository Sep 18, 2021
@dhess dhess added the tracking This is a tracking issue label Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracking This is a tracking issue
Projects
None yet
Development

No branches or pull requests

3 participants