Fork me on GitHub
#babashka
<
2020-01-05
>
sogaiu04:01:14

0.0.60 passed all tests here -- this was with xubuntu my windows 10 vm didn't survive, so i'll look into setting up another one

sogaiu04:01:44

btw, regarding doing symlinks on windows -- iiuc, this won't work until jdk 13 if using "standard" methods.

sogaiu04:01:41

two ideas: 1) use mklink 2) get https://github.com/jnr/jnr-posix working with graal

sogaiu05:01:14

not sure really - windows stuff seems to be far weirder than my expectations (e.g. odd length limitations, bizarre quoting, strange dynamic linking rules, etc.). the mklink idea is the shelling out path. the jnr stuff looks pretty interesting - haven't tried it let alone getting it to work with graal.

Lyn Headley12:01:28

@deleted-user bb replaces bash for me in mutating the environment. Here is a line from my .bashrc: PATH=$(bb /home/laheadle/src/clj/bb-scripts/unique_path.clj)

nate19:01:59

Very cool! Would you be willing to share the bb code?

borkdude18:01:49

Progress:

$ babashka -e "(require '[spartan.spec :as s]) (s/explain (s/cat :i string?) [1])"
1 - failed: string? in: [0] at: [:i]

👍 12
jeroenvandijk10:01:33

export BABASHKA_CLASSPATH="$(clojure -Sdeps '{:deps {spartan.spec {:git/url "" :sha "104129aae9eab6dd4622937d0f46abeed9c9c537"}}}' -Spath)"
bb -e "(require '[spartan.spec :as s]) (s/explain (s/cat :i string?) [1])"
1 - failed: string? in: [0] at: [:i]

👌 4
jeroenvandijk10:01:33

export BABASHKA_CLASSPATH="$(clojure -Sdeps '{:deps {spartan.spec {:git/url "" :sha "104129aae9eab6dd4622937d0f46abeed9c9c537"}}}' -Spath)"
bb -e "(require '[spartan.spec :as s]) (s/explain (s/cat :i string?) [1])"
1 - failed: string? in: [0] at: [:i]

👌 4