In a leiningen plugin, can I see a list of which profiles have been enabled?
@nick.matthews if you just want to see from the cmd line, I think it’ll print if you use DEBUG=true lein ...
if you are working on a plugin, you can get access to active profiles on the given project
working on making changes to an existing internal plugin, so trying to figure out how to access the activated plugins
leiningen.core.project/profile-annotations
maybe can give you the info you want
this should return the :include-profiles
of the project meta. I think that’s what you want, not the :active-profiles
here. I forget what :active-profiles
.
Well, I guess this sums it up somewhat https://github.com/technomancy/leiningen/commit/5893c1406aa41db473fac102a513812056016721
so it depends on if you want pre-expanded or post-expanded when composites are involved
thanks, that’s helpful.
Still trying to see if I can refactor this plugin such that I don’t have to apply magic to get the profiles to carry through to this stage. There’s a bunch of project file rewriting and reading going on.
Hmm