Fork me on GitHub
#leiningen
<
2017-02-02
>
arohner00:02:30

I might be able to do some lein run pomegranate stuff

luke15:02:56

Quick question… is there any easy way to tell what profiles are active from within the launched process?

bja17:02:49

is that something that is even theoretically knowable? lein can merge arbitrary profiles together with data on the fly.

luke18:02:39

well, the working set of profiles could be passed in as a JVM property or something, right? Because the profiles can’t change once lein has booted a JVM.

bja18:02:03

it seems like it's be more useful to write out/pass in the project.clj that resulted from all of the profile merges. Then you could write a profile predicate if you cared to test for a specific profile.

bja18:02:47

the way that profiles get combined, knowing that profileA and profileB were both active doesn't necessarily tell you that the features from profileA were included at runtime (profileB could overwrite them)