This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-15
Channels
- # announcements (2)
- # aws (52)
- # beginners (326)
- # cider (24)
- # clara (7)
- # clj-kondo (14)
- # cljs-dev (175)
- # clojure (183)
- # clojure-ecuador (2)
- # clojure-europe (4)
- # clojure-italy (11)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-spec (5)
- # clojure-sweden (5)
- # clojure-uk (103)
- # clojurescript (49)
- # cursive (29)
- # data-science (9)
- # datascript (17)
- # datomic (23)
- # emacs (6)
- # events (4)
- # fulcro (19)
- # graalvm (8)
- # graphql (2)
- # hoplon (36)
- # jobs (1)
- # jobs-discuss (92)
- # juxt (3)
- # luminus (10)
- # off-topic (4)
- # pedestal (8)
- # planck (1)
- # re-frame (59)
- # reagent (1)
- # reitit (22)
- # rewrite-clj (8)
- # ring-swagger (3)
- # shadow-cljs (101)
- # spacemacs (15)
- # tools-deps (36)
- # vim (68)
@borkdude are you able to bundle resources and get a bytestream from them or file object with the classloader? I have a resource-config.json with "resources" and "pattern", it clearly inflates my binary size, but somehow these resources are hidden (or the classloader tries to open files from the filesystem)
@hlolli I had to make a workaround for this: https://github.com/borkdude/clj-kondo/blob/windows/src/clj_kondo/impl/cache.clj#L15
Is your question about Windows specifically, or do you have the same problem on other OSes?
@hlolli here’s an example project that reads a resource file https://github.com/taylorwood/lein-native-image/tree/master/examples/http-api