This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-07
Channels
- # announcements (2)
- # asami (2)
- # babashka (15)
- # babashka-sci-dev (31)
- # beginners (130)
- # boot (4)
- # cider (5)
- # circleci (12)
- # clj-kondo (10)
- # cljs-dev (8)
- # clojure (7)
- # clojure-czech (14)
- # clojure-europe (19)
- # clojure-france (5)
- # clojure-uk (2)
- # clojured (23)
- # clojurescript (11)
- # conjure (8)
- # datomic (5)
- # emacs (1)
- # etaoin (8)
- # events (2)
- # fulcro (10)
- # graalvm (18)
- # gratitude (1)
- # holy-lambda (16)
- # honeysql (4)
- # introduce-yourself (1)
- # jobs (2)
- # kaocha (3)
- # london-clojurians (1)
- # lsp (53)
- # off-topic (16)
- # other-languages (2)
- # pathom (4)
- # pedestal (3)
- # podcasts-discuss (1)
- # portal (10)
- # re-frame (69)
- # reitit (2)
- # shadow-cljs (11)
- # vim (7)
- # xtdb (29)
Q: I’m trying to speed up my CI. the native:conf step takes quite a long time to download my clojure deps so I’m trying to cache them. I’ve added a deps.edn cache config (bitbucket CI) but the deps are still downloaded. Is this because the conf step is run inside Docker?
Is there a way to have the Docker container use the cached deps from the outer CI task?
Hmm, now I’m trying a different solution. Following the docs and setting HL_NO_DOCKER in CI. If I can make this work then the prev question of cached deps doesn’t matter. I think I prefer this as a fix
but my HL bb tasks are still trying to use docker. I’m using this as the base for my docker container…
FROM
Oh. It might be a regression in the tasks. I will try to take a look tomorrow.
tasks.clj L312, we should also check if HL_NO_DOCKER is set to skip the download. PR welcome ;>
good to know. I’ve got to focus on a prod release for the next day or so. I’ll create PR after that if not done
Sure. Today I’m out of home, so I will try to make a change tomorrow! All the best to you!
Oh yes, I do know how fun it is 😄 Here is the fix: df686cc87129e56a9a7b07c6c2e2168742eb1d45
@UJ1339K2B just tried it with fix but getting this result
+ bb hl:compile
Could not find /project/.holy-lambda/clojure-tools-1.10.3.1040.jar
Downloading tools jar from
Downloading: com/fasterxml/jackson/core/jackson-databind/2.13.0/jackson-databind-2.13.0.pom from central
Downloading: com/fasterxml/jackson/core/jackson-core/2.13.0/jackson-core-2.13.0.pom from central
Downloading: com/fasterxml/jackson/core/jackson-annotations/2.13.0/jackson-annotations-2.13.0.pom from central
Downloading: com/fasterxml/jackson/core/jackson-databind/2.13.0/jackson-databind-2.13.0.jar from central
Downloading: com/fasterxml/jackson/core/jackson-core/2.13.0/jackson-core-2.13.0.jar from central
Downloading: com/fasterxml/jackson/core/jackson-annotations/2.13.0/jackson-annotations-2.13.0.jar from central
Downloading: borkdude/rewrite-edn/0.0.2/rewrite-edn-0.0.2.pom from clojars
Downloading: rewrite-clj/rewrite-clj/1.0.572-alpha/rewrite-clj-1.0.572-alpha.pom from clojars
Downloading: org/clojure/tools.reader/1.3.5/tools.reader-1.3.5.pom from central
Downloading: rewrite-clj/rewrite-clj/1.0.572-alpha/rewrite-clj-1.0.572-alpha.jar from clojars
Downloading: org/clojure/tools.reader/1.3.5/tools.reader-1.3.5.jar from central
Downloading: borkdude/rewrite-edn/0.0.2/rewrite-edn-0.0.2.jar from clojars
[holy-lambda] Executable /root/.graalvm/bin/java does not exists! Using fallback: java instead! Did you set up GRAALVM_HOME?
[holy-lambda] Executable /root/.graalvm/bin/native-image does not exists! Using fallback: native-image instead! Did you set up GRAALVM_HOME?
----- Error --------------------------------------------------------------------
Type: java.io.IOException
Message: Cannot run program "docker": error=2, No such file or directory
Location: /project/.holy-lambda/.gitlibs/libs/io.github.FieryCod/holy-lambda-babashka-tasks/1469bb96b85c2c65a52df9e3a4914dde1b4c816f/modules/holy-lambda-babashka-tasks/src/holy_lambda/tasks.clj:182:16
----- Context ------------------------------------------------------------------
178: (:err result))))
179:
180: (defn shs-no-err
181: [cmd & args]
182: (let [result (apply csh/sh (remove nil? (into (p/tokenize cmd) args)))]
^--- Cannot run program "docker": error=2, No such file or directory
183: (if (s/blank? (:err result))
184: (when-not (s/blank? (:out result))
185: (:out result))
186: nil)))
187:
----- Stack trace --------------------------------------------------------------
clojure.core/apply - <built-in>
holy-lambda.tasks/shs-no-err - /project/.holy-lambda/.gitlibs/libs/io.github.FieryCod/holy-lambda-babashka-tasks/1469bb96b85c2c65a52df9e3a4914dde1b4c816f/modules/holy-lambda-babashka-tasks/src/holy_lambda/tasks.clj:182:16
holy-lambda.tasks/shs-no-err - /project/.holy-lambda/.gitlibs/libs/io.github.FieryCod/holy-lambda-babashka-tasks/1469bb96b85c2c65a52df9e3a4914dde1b4c816f/modules/holy-lambda-babashka-tasks/src/holy_lambda/tasks.clj:180:1
holy-lambda.tasks - /project/.holy-lambda/.gitlibs/libs/io.github.FieryCod/holy-lambda-babashka-tasks/1469bb96b85c2c65a52df9e3a4914dde1b4c816f/modules/holy-lambda-babashka-tasks/src/holy_lambda/tasks.clj:310:12
clojure.core/boolean - <built-in>
holy-lambda.tasks/docker-image-exists? - /project/.holy-lambda/.gitlibs/libs/io.github.FieryCod/holy-lambda-babashka-tasks/1469bb96b85c2c65a52df9e3a4914dde1b4c816f/modules/holy-lambda-babashka-tasks/src/holy_lambda/tasks.clj:310:3
holy-lambda.tasks/docker-image-exists? - /project/.holy-lambda/.gitlibs/libs/io.github.FieryCod/holy-lambda-babashka-tasks/1469bb96b85c2c65a52df9e3a4914dde1b4c816f/modules/holy-lambda-babashka-tasks/src/holy_lambda/tasks.clj:308:1
holy-lambda.tasks - /project/.holy-lambda/.gitlibs/libs/io.github.FieryCod/holy-lambda-babashka-tasks/1469bb96b85c2c65a52df9e3a4914dde1b4c816f/modules/holy-lambda-babashka-tasks/src/holy_lambda/tasks.clj:312:11
user-5e1b2b32-2c62-4fb2-9bc8-2c04a0d5286a - <expr>:5:47
@U0510KXTU you didn't update the tasks SHA.