integrant

shaun-mahood 2018-09-18T22:05:22.000100Z

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.

2018-09-18T22:06:08.000100Z

Integrant shouldn't have any problems with lein uberjar to my knowledge.

2018-09-18T22:08:09.000100Z

I use lein uberjar to bundle/deploy my apps just fine.

2018-09-18T22:08:22.000100Z

What errors are you running into @shaun-mahood?

shaun-mahood 2018-09-18T22:10:05.000100Z

@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?

2018-09-18T22:11:02.000100Z

Do you have a component that is maybe hanging/stuck during initialization?

2018-09-18T22:11:57.000100Z

Do you have an infinite lazy seq that's triggered when evaluating a namespace?

shaun-mahood 2018-09-18T22:14:33.000100Z

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 defd in one of my CLJ files, not sure if there's an issue with that.

shaun-mahood 2018-09-18T22:16:28.000100Z

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.

2018-09-18T22:18:35.000100Z

Have you done a lein clean to make sure there aren't any artifacts in your target directory that might be affecting things?

shaun-mahood 2018-09-18T22:19:09.000200Z

Yep

shaun-mahood 2018-09-18T22:51:14.000100Z

@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!

2018-09-18T22:51:48.000100Z

Glad you found the issue, @shaun-mahood!

shaun-mahood 2018-09-18T22:53:17.000100Z

Me too - I've been really enjoying learning how to use integrant!

1