This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-02
Channels
- # adventofcode (6)
- # announcements (6)
- # babashka (21)
- # babashka-sci-dev (18)
- # biff (6)
- # clara (4)
- # clj-commons (2)
- # clj-kondo (7)
- # cljdoc (4)
- # clojure (9)
- # clojure-berlin (8)
- # clojure-europe (23)
- # clojure-gamedev (3)
- # clojure-indonesia (1)
- # clojure-nl (1)
- # clojure-norway (10)
- # clojure-poland (1)
- # clojurescript (27)
- # community-development (1)
- # conjure (32)
- # etaoin (6)
- # events (20)
- # fulcro (5)
- # graalvm (1)
- # helix (19)
- # hyperfiddle (14)
- # introduce-yourself (2)
- # music (1)
- # nbb (24)
- # off-topic (37)
- # pathom (2)
- # polylith (14)
- # reagent (11)
- # releases (1)
- # remote-jobs (1)
- # reveal (22)
- # shadow-cljs (16)
- # sql (3)
- # squint (11)
- # test-check (2)
- # xtdb (36)
Looks like you've found the answers to all of your questions, right? Is there anything outstanding that you still want to know? If so, I can try to help, having done this sort of thing a lot myself. 🙂
Thanks, I actually did but in the wrong channel. Just reposted here for others in case they need it
I’ve got a babashka script that I call directly using a she-bang in the script itself, e.g., #!/usr/bin/env bb
. It doesn’t have any dependencies other than what’s already bundled in babashka. If I happen to call it while in a directory that includes a bb.edn
file, it notices the bb.edn
and attempts to fetch all of the dependencies that are in the bb.edn
file. Is there a way for me to tell bb to ignore the bb.edn file? Or do I just need to make sure I’m not calling that script from a directory that also has a bb.edn
file? (Note, the script itself does is not in a directory that has a bb.edn file. Think
$ ls bb.edn
bb.edn
$ head -n1 ../../script/some-bb-script
#!/usr/bin/env bb
$ ../../script/some-bb-script
# attempts to fetch all of the deps in bb.edn
I did explore the --classpath ""
and noticed that the "babashka.config"
System property was still referencing the bb.edn
file. Is that expected? I kinda expected it to be empty.
I kinda like the idea of being able to pass --config nil
or --no-config
or something, as it’s a bit more explicit and doesn’t have babashka.config
set. I can rationalize the current behavior as well. (Though I do think throwing with an invalid bb.edn
would be really useful)