This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-09
Channels
- # announcements (1)
- # atlanta-clojurians (1)
- # beginners (198)
- # calva (4)
- # cider (16)
- # clara (8)
- # cljs-dev (14)
- # cljsrn (4)
- # clojure (204)
- # clojure-europe (3)
- # clojure-gamedev (2)
- # clojure-italy (8)
- # clojure-nl (17)
- # clojure-poland (3)
- # clojure-russia (20)
- # clojure-spec (32)
- # clojure-uk (45)
- # clojurescript (59)
- # community-development (1)
- # core-async (25)
- # cursive (20)
- # datomic (47)
- # emacs (7)
- # fulcro (8)
- # iot (1)
- # iotivity (2)
- # jobs (1)
- # jobs-discuss (8)
- # juxt (11)
- # luminus (5)
- # nrepl (4)
- # off-topic (136)
- # onyx (24)
- # other-lisps (1)
- # parinfer (74)
- # pedestal (1)
- # planck (3)
- # portkey (67)
- # random (1)
- # re-frame (28)
- # reagent (11)
- # reitit (9)
- # remote-jobs (3)
- # ring-swagger (2)
- # rum (3)
- # shadow-cljs (96)
- # slack-help (3)
- # spacemacs (6)
- # tools-deps (3)
- # unrepl (1)
- # vim (4)
I have an esoteric thing going on with pack/onejar and I’m hoping for some guidance on where to even deal with it… the situation:
- I’m packing up an uberjar with onejar (it’s the one I could get working; no real preference,
it seems that my static file delivery blows up because of a missing :onejar
method for ring.util.response/resource-data
my java-fu is insufficient to figure out the method implementation. I don’t think this is really a juxt/pack
problem, but I’m hoping for some guidance where I might document this or help other people out with getting over the hump
Make sure you're on master. This might have been broken recently. The readme is out of date. Any clues about what resource-data does? I'm guessing it is looking at the URL in some way. Capsule would avoid the problem if so.
@dominicm resource-data
seems to do the work of figuring out content-type, last-modified, content-length headers so Ring can stuff them into the response. Ring provides :file and :jar implementations, but it seems onejar gives back URLs of the form onejar://...
. See also https://github.com/ring-clojure/ring/blob/1.7.0/ring-core/src/ring/util/response.clj#L241-L242