Skip to content

RFE: local plugins and build-tool-depends #6307

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

Open
tseenshe opened this issue Oct 21, 2019 · 3 comments
Open

RFE: local plugins and build-tool-depends #6307

tseenshe opened this issue Oct 21, 2019 · 3 comments

Comments

@tseenshe
Copy link
Contributor

tseenshe commented Oct 21, 2019

This is a very ambituous request because it goes beyond #2965

I am the author of a compiler plugin and command line tool (both at https://gitlab.com/tseenshe/hsinspect) that are only useful for developers and not something anybody would ever want to export in their .cabal file.

I know of other plugins that are only useful for developers and not for the build itself, e.g. the removal of unused imports.

I would like for users to be able to install my plugin and command line tool via their cabal.project.local file.

@emilypi
Copy link
Member

emilypi commented Mar 31, 2020

@phadej How difficult would it be to implement something like this? I have need, and I'd be happy to start putting in the effort if guidance is available.

@tseenshe I'd also add the RFE to define common stanzas in the toplevel cabal.project for multipackage builds. (Unless this is a huge problem for some problem I've missed in the lore)

@phadej
Copy link
Collaborator

phadej commented Apr 1, 2020

@emilypi, tricky, yet not impossible. I see #2965 as a pre-requisite. (Then as follow-up from cabal.project one could be able to amend packages' plugin-depends)

@coot
Copy link
Collaborator

coot commented Sep 22, 2021

I found this way of doing it, unfortuantely it requires passing -package-db where the plugin is installed. That's a hack, because it requires that the plugin is installed globally.

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

6 participants