This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-13
Channels
- # aleph (6)
- # announcements (10)
- # asami (3)
- # babashka (111)
- # babashka-sci-dev (20)
- # beginners (28)
- # calva (28)
- # clj-http (1)
- # clj-kondo (23)
- # cljs-dev (16)
- # cljsrn (23)
- # clojure (116)
- # clojure-czech (3)
- # clojure-europe (33)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-uk (5)
- # clojurescript (41)
- # community-development (2)
- # cursive (5)
- # datahike (4)
- # datomic (13)
- # figwheel-main (3)
- # fulcro (11)
- # google-cloud (1)
- # gratitude (8)
- # hyperfiddle (14)
- # jobs (2)
- # lsp (22)
- # malli (4)
- # off-topic (4)
- # other-languages (4)
- # pathom (13)
- # portal (40)
- # rdf (11)
- # reitit (1)
- # sci (15)
- # shadow-cljs (7)
- # specter (1)
- # sql (6)
- # xtdb (4)
oh yeah, probably. I forgot we did that haha. I didn't adopt it where I was doing that. 😆 I'll give it a try!
looks like prepare tries to run local pods too. probably b/c it downloads pods and tries to cache their describe metadata. hmm...
just trying to think if it's worth changing it / adding a flag / whatever for the download-only use case
if you're just trying to download, sometimes it's handy (e.g. docker images) to ignore the local pods in case they aren't available at that path. which is fine if you're just trying to download non-local pods.
nothing when they exist at the path in the config 🙂
on the flip side, it's nice to cache that metadata in the docker image too. I'll have to play around w/ it and think about it a bit more.
maybe we should check if the pod exists before executing it and else just do nothing?
yeah, maybe log a warning but continue on w/ downloading or something
I think deep merging at the CLI is something we need for other use cases, eg setting the mvn local repo too
@cap10morgan I like what shadow has done here with naming: --config-merge
makes the intent very clear
https://shadow-cljs.github.io/docs/UsersGuide.html#config-merge
OK I think I ran into an issue w/ local pods in uberjars. Currently the code puts the metadata cache into a .babashka
dir in the same parent dir as the bb.edn
file (i.e. our idea of a project-specific .babashka
dir). Which, in the case of a JAR, is the META-INF
inside the .jar file. So then it tries to write out the metadata to a file in there and throws a FileNotFoundException (which I assume is really a "I can't write to a file there" exception). The simplest fix might be to just test for ability to write to the file there and not try to cache the metadata if we can't. So no local pod caching in uberjars. And then we can address caching when / if we build the option to pull pods into the uberjar too.