Has anyone had trouble getting integrant to play nicely with lein uberjar
?
I'm not sure what I'm doing wrong, using lein with-profile uberjar compile
works fine though.
Integrant shouldn't have any problems with lein uberjar
to my knowledge.
I use lein uberjar
to bundle/deploy my apps just fine.
What errors are you running into @shaun-mahood?
@dadair My jar file keeps growing (up to 5 GB before I checked) and the command never completes. Do you have any public examples of the two working together?
Do you have a component that is maybe hanging/stuck during initialization?
Do you have an infinite lazy seq that's triggered when evaluating a namespace?
Good question 🙂 The only thing I know for sure is that it works fine using lein run
and from the repl.
My integrant config is def
d in one of my CLJ files, not sure if there's an issue with that.
I've tried pulling almost everything out except for the core integrant parts that I'm using and I suspect I've done something wrong there (or in the uberjar or aot config, since that's not my strong point). I'll try making a minimal example to post.
Have you done a lein clean
to make sure there aren't any artifacts in your target directory that might be affecting things?
Yep
@weavejester I think I found the problem - at some point I very smartly added target
to my resource-paths when changing something else, so of course it would just keep growing and growing. Thanks for the help!
Glad you found the issue, @shaun-mahood!
Me too - I've been really enjoying learning how to use integrant!