Which docker-hub should I go to for future babashka updates? I found theese: https://hub.docker.com/r/babashka/babashka/ https://hub.docker.com/r/borkdude/babashka/
@jarvinenemil In the future babashka/babashka, right now: borkdude/babashka.
Only the snapshot is released to babashka/babashka right now
But you can use the snapshot release if you feel adventurous
We also released an alpine image in addition to the ubuntu one. This is mostly @rahul080327's work
Yeah I'd like to have the stable ones, I thought https://hub.docker.com/r/babashka/babashka/ was the one to use so I got that one whitelisted at my company
yeah, sorry for the confusion, we have just migrated this during the xmas break and from 0.2.7 on it will be all babashka/babashka
No worries, I'm using the /borkdude/ repo for now. Thanks for the clarification! π
Whatβs an idiomatic way to know if the code is run in the repl?
Also, how do I use babashka.fs
? I guess I need to get it on the classpath, but Iβm not sure how to go about it.
@pez babashka.fs is currently a gitlib only, it's quite unfinished. you can require libs in bb using babashka.deps: https://book.babashka.org/#babashkadeps How do you know code is running in a REPL: how do you do this in normal Clojure?
No problem, I'm happy to answer your questions ;)
I was curious about that too. I've taken to having this in my scripts around the "main logic":
(when-not (System/getenv "DEV")
(let [...]
(process ...)))
and then running bb like this:
DEV=1 bb --nrepl-server
that way, I can load my entire script in my editor and it won't trigger it actually running anythingthis isn't a problem in clojure, because java invokes a main function, so evaluating my main namespace in clojure doesn't actually run anything
@nate we have this solution for that problem: https://book.babashka.org/#main_file
ah! thank you
I'll switch to that
I need a better title for that recipe probably
oh, and the code is missing a closing paren
Feel free to PR a change
sure thing
done
man, github really does make it easy to submit a small PR, I did it all via the web UI
:-D
@pez btw, clj-commons/fs also works with bb: https://github.com/babashka/babashka/blob/master/doc/projects.md#clj-commonsfs
Today we released pod-babashka-aws 0.0.2 (performance improvement for big file uploads) and 0.0.3 (credential options). https://github.com/babashka/pod-babashka-aws/blob/main/CHANGELOG.md
This is probably most of the remaining work for this pod, so I consider it "done" unless bug reports will come in.
And here is the news of december 2020: https://github.com/babashka/babashka/blob/master/doc/news.md#2020-12