-
Notifications
You must be signed in to change notification settings - Fork 197
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
Main dependencies list for a package includes dependencies for non default buildable components #843
Comments
The executables' dependencies are shown because they are only hidden by automatic flags, and Hackage currently only looks at the default values for manual flags: hackage-server/Distribution/Server/Packages/Render.hs Lines 186 to 187 in 3a5bc1a
|
Thanks. The solution is simply to change these flags to manual? |
I changed the cabal file to make the flags manual, but Hackage still seems to be listing the dependencies for these components: |
Sorry, I had thought that the dependencies were also under a flag. It looks like Hackage excludes the dependencies from the list if they are under a branch that cannot be active when manual flags have their default values, but It doesn't take the buildable field into account. That logic was consistent with the behavior of Cabal before haskell/cabal#1725 was fixed, but now it needs to be updated. |
The main dependencies list for a package is also showing the dependencies for non default buildable components. I think it should only show dependencies for the default buildable components.
Example: http://hackage.haskell.org/package/simple-sql-parser-0.6.0
I think these bugs are related:
#809
#789
The text was updated successfully, but these errors were encountered: