This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-01
Channels
- # announcements (14)
- # aws (1)
- # babashka (22)
- # beginners (105)
- # biff (12)
- # calva (1)
- # cider (7)
- # cljsrn (1)
- # clojure (33)
- # clojure-europe (22)
- # clojure-germany (1)
- # clojure-uk (3)
- # clojurescript (28)
- # component (15)
- # copenhagen-clojurians (1)
- # core-typed (29)
- # cursive (8)
- # data-science (2)
- # datomic (2)
- # emacs (16)
- # gratitude (3)
- # humbleui (3)
- # introduce-yourself (4)
- # lsp (1)
- # other-languages (3)
- # rdf (3)
- # sci (6)
- # shadow-cljs (9)
- # spacemacs (12)
- # tools-build (1)
- # tools-deps (5)
- # vim (3)
- # vscode (1)
Oh wow. I just had an issue that made me think I was going insane.
Trying to migrate my release build process so it uses Docker containers. Ran podman build ...
, got an image, but... the build artifacts aren't there. So RUN npm run buid-ui
works just fine but RUN ls target/prod
shows no files.
As you can probably guess, the build-ui
NPM script relies on shadow-cljs run
. Turns out, running shadow-cljs run
within a container actually uses a shadow-cljs server instance outside the container, if there's one running.
hmm did you mount the .shadow-cljs
dir in the container? otherwise it shouln't be able to find or use the outside server?
No mounts at all, only COPY
statements and .shadow-cljs
is ignored.
I'll have to debug it a bit further before understanding why it works that way. Maybe it's intentional, or maybe there's something wrong with podman build
.
Thanks. Hmm, seems like "`.shadow-cljs` is ignored" statement is incorrect... The way I was reading docs and discussions about .containerignore
, all dot files are ignored by default. But apparently that's not the case, so I gotta fix that.
An unrelated issue - after upgrading to 2.18.0 (I think), I started getting this warning about at least once a day, regardless of whether I actually follow the recommendation in it:
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
No clue whether it's something on the shadow-cljs' side at all.