-
Notifications
You must be signed in to change notification settings - Fork 698
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
Independent goals in extra-packages #7865
Comments
This seems like a complaint that |
@michaelpj I disagree. In general, there's no reason extra-packages need to be solved together, so its correct we shouldn't be doing it. Once that's fixed, then it will just so happen that it will suffice to provide executables in the desired way. I.e. if we fix something that should be fixed anyway, then there will be no need for a new thing. |
@michaelpj: what's the drawback? Is it that potentially we'd build new versions of the same deps instead of using the same as for the main package? Any realistic and disastrous scenario for that? Anything else? |
Hmm, I think maybe I just have a different idea about what the "build-plan policy" is. I can think of at least two:
I think I intuitively want the latter policy, although I don't have a great justification. The best thing I can think of is that something like So I guess we don't really have a clear definition of what |
As additional context, the original motivation for extra-packages is indeed to include extra libraries consistent with the build plan: #3737 (comment) . I guess we do need to distinguish the two cases after all |
Presently, Haskell users have to manually manage dev dependencies. Which leads to many problems: Undocumented build steps, repeating code multiple times, writing provisioning scripts to manage dev dependencies, growing the tech stack to include sh/Python/Ansible/Ruby/Chef/Puppet/batsh, and worse. To be clear, my desire is for Cabal to be able to pin and install developer tools like If this feature helps to implement a dev dependency section in Cabal configuration, more power to it. |
Cabal can pin and install dev tools like happy, via the build-tools-depends field of cabal files themselves. This ticket is just about extra-packages in cabal.project files. |
FWIW, I have been using Presumably if the contents of |
I guess we should consider closing this, possibly in favor of a new ticket about |
Closing in favor of #9230 |
Currently extra-packages are solved all together, and together with all other packages in the project too. This restriction is artificial and it can cause the solved versions to be older than actually needed. See #6952 (comment) for more details
The text was updated successfully, but these errors were encountered: