Fork me on GitHub
#babashka
<
2021-05-03
>
borkdude07:05:08

I've decided to just keep it the way it is. Although this is an oversight, people may already rely on it. If they want to make their code portable with JVM Clojure it's an easy fix.

Karol Wójcik09:05:20

Babashka is awesome!! Quick rationale why:

👏 3
Karol Wójcik10:05:38

@borkdude Can I somehow analyze script and tell which dependencies should be added to the classpath?

Karol Wójcik10:05:47

Let me maybe explain it a little bit. I've got following babashka runtime layer. https://github.com/FieryCod/holy-lambda/tree/master/modules/holy-lambda-babashka-layer With build in classpath:

src:/opt/.m2/io/github/FieryCod/holy-lambda/0.1.45/holy-lambda-0.1.45.jar:/opt/.m2/io/github/FieryCod/holy-lambda-babashka-shim/0.1.38/holy-lambda-babashka-shim-0.1.38.jar:/opt/.m2/org/clojure/clojure/1.10.3/clojure-1.10.3.jar:/opt/.m2/com/amazonaws/aws-lambda-java-core/1.2.1/aws-lambda-java-core-1.2.1.jar:/opt/.m2/io/github/FieryCod/holy-lambda-default-retriever/0.0.5/holy-lambda-default-retriever-0.0.5.jar:/opt/.m2/metosin/jsonista/0.3.2/jsonista-0.3.2.jar:/opt/.m2/org/clojure/core.specs.alpha/0.2.56/core.specs.alpha-0.2.56.jar:/opt/.m2/org/clojure/spec.alpha/0.2.194/spec.alpha-0.2.194.jar:/opt/.m2/com/fasterxml/jackson/core/jackson-core/2.12.2/jackson-core-2.12.2.jar:/opt/.m2/com/fasterxml/jackson/core/jackson-databind/2.12.2/jackson-databind-2.12.2.jar:/opt/.m2/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.12.2/jackson-datatype-jsr310-2.12.2.jar:/opt/.m2/com/fasterxml/jackson/core/jackson-annotations/2.12.2/jackson-annotations-2.12.2.jar
/var/task/src:/var/task/.m2:/var/task:/var/task/src/clj:/var/task/src/cljc:src/cljc:src/clj:/var/task/resources
It works well with default dependencies, but when the user includes any other dependencies then classpath does not cover it.

borkdude10:05:56

@UJ1339K2B Users can add dependencies to bb.edn or via babashka.deps/add-deps, or via babashka.classpath/add-classpath

Karol Wójcik11:05:26

@borkdude But can they use regular stuartsierra.component if its already provided in classpath?

borkdude11:05:52

they should, I think, yes

borkdude10:05:37

Hey, just launched this site: https://babashka.org/ Let me know what you think

❤️ 6
babashka 1
Karol Wójcik10:05:18

Love the font!

Karol Wójcik10:05:36

Looks weird on phone though

borkdude10:05:06

@UJ1339K2B Can you try again on the phone? I think I messed something up

Karol Wójcik10:05:13

Both on emulator and real device

borkdude10:05:39

ok, I will ask the person who designed the site to take a look

ambrosebs03:05:00

brilliant, looks great

mike_ananev23:05:31

@borkdude, I solved the problem! Your deps.exe saved me. I have two JVMs on my Windows machine and one of them had no trusted certs from our internal CA. After I added them into cacerts file, deps.exe started to download any deps. Cool! Now I can develop my Clojure projects not only on BYOD Mac but also on Windows VM.