Lein capsule shouldn't run in the context of the user profile
lein-capsule uses the effective project.clj instead of the literal project.clj to do it's thing. Among other things, this causes every dependency defined in profiles.clj to be included in the capsule.
The quick fix, on the commandline, is to invoke lein with a specific profile.
Do you think lein-capsule shouldn't take user profiles into account? Why is that so in your opinion?
Take a quick gander at my profiles.clj. Not only is there a ton of stuff in there, but none of it is relevant when packaging up a project.
In the best case it only inflates the size of the capsule, but in my case it actually prevented the capsule from building. I was trying to package refactor-nrepl, to avoid polluting the user's classpath with tooling related dependencies, and got an error because the jar was being included twice in the capsule (once as a dep from my profiles.clj and once when packaging up the project proper).