Fork me on GitHub
#meander
<
2021-08-19
>
dominicm08:08:09

I finally have the perfect use case for meander! However, there's a problem with the jar you're releasing. It contains a copy of Clojure AOT'd!

dominicm08:08:02

❯ jar tf  ~/.m2/repository/meander/epsilon/0.0.643/epsilon-0.0.643.jar | grep '^clojure/' | head
clojure/
clojure/core$generate_proxy$gen_method__7051.class
clojure/reflect$declared_fields.class
clojure/string$split_lines.class
clojure/pprint$init_cap_writer$fn__10632.class
clojure/core$fn__7417.class
clojure/core$bean$fn__7221.class
clojure/core$vector_QMARK___5414.class
clojure/core$destructure$pb__6246$pmap__6249$fn__6252$fn__6256.class
clojure/core$mk_am.class
This makes the jar bigger than Clojure itself!
❯ du -hs ~/.m2/repository/meander/epsilon/0.0.643/epsilon-0.0.643.jar ~/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar
4.6M	/home/overfl0w/.m2/repository/meander/epsilon/0.0.643/epsilon-0.0.643.jar
3.8M	/home/overfl0w/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar

noprompt15:08:14

@dominicm Hmm… OK. I packaged this one up manually with uberdeps and I’m betting I made a mistake.

noprompt15:08:44

Juxt has a deps package thingy, yeah?

noprompt15:08:35

I’ll try and get this fixed up.

delaguardo15:08:43

newest version of clojure cli can help as well https://github.com/DotFox/meander/commit/21112eb3ce689524f005d0ce9a3d065ba3c43752 here is my attempt (successful 🙂) to make a package and install into local repository

delaguardo15:08:03

clj -T:build all

delaguardo15:08:28

result is 94K

noprompt15:08:00

Thanks for the tips. 🙂

dominicm20:08:52

I tried to figure out the release process and got a bit lost with the whole project.clj generation stuff tbh 😅

noprompt20:08:30

That stuff needs to get dumped in the toilet. I’m don’t want to use lein deploy clojars anymore because reasons. 🙂

noprompt20:08:46

I’m good to have anything else.

noprompt20:08:04

A basic script would be fine.

dominicm20:08:27

I did stumble across https://github.com/applied-science/deps-library which might be of interest

noprompt21:08:46

Great. I’ll take a look at this stuff tomorrow and see about reducing the size of the jar.

noprompt21:08:52

Thanks for reporting the issue. 🙂