This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-21
Channels
- # announcements (12)
- # atom-editor (2)
- # babashka (44)
- # beginners (4)
- # calva (3)
- # clj-kondo (10)
- # clj-yaml (1)
- # cljsrn (1)
- # clojars (5)
- # clojure (68)
- # clojure-europe (40)
- # clojure-nl (1)
- # clojure-norway (75)
- # clojure-uk (2)
- # clojurescript (23)
- # conjure (1)
- # datomic (2)
- # defnpodcast (7)
- # emacs (23)
- # etaoin (7)
- # fulcro (7)
- # funcool (2)
- # honeysql (3)
- # hyperfiddle (40)
- # interop (4)
- # jobs (3)
- # lsp (1)
- # malli (16)
- # off-topic (16)
- # parinfer (2)
- # podcasts-discuss (1)
- # portal (61)
- # reitit (6)
- # releases (1)
- # remote-jobs (6)
- # scittle (4)
- # shadow-cljs (18)
- # spacemacs (4)
- # vim (22)
- # xtdb (12)
I'm considering the following change to bb:
~/my_project/bb.edn <- has medley in :deps
~/my_project/script.bb <- uses medley.core, has #!/usr/bin/env bb shebang
/tmp $ ;; not inside ~/my_project
/tmp $ export PATH=$PATH:~/my_project
/tmp $ ;; works, uses ~/my_project/bb.edn as the "config" file
This lets you more easily create system-wide scripts, without using bbin
Released now in 1.3.177. I had it planned for a while, I hope it pans out the right way
Yeah already tested, and works as expected here. Fingers crossed for no surprises:crossed_fingers:
Just tried this - it's a feature I didn't know I wanted, until now! ๐
How should this work when combined with relative paths in bb.edn
?
We have this:
:deps {pitch/bblib {:local/root "../../projects/bblib"}}
but it looks like bb is using cwd
rather (dirname "bb.edn")
as a base path to resolve relative paths
@U06F82LES Hmm, somehow I missed your messages
Given a bb.edn
in my project root, if I try to invoke a bb ./script/iluvbb.clj
and that script refers to a dep in bb.edn
I am getting a failure.
I'll still do a small repro to verify my claim here. Sometimes I'm out to lunch, ya know?
In case you're wondering: https://github.com/babashka/babashka/commit/1de5c553eaa644a3fd9fefa5833443deb1c1924d?w=1 I should add a test for this
@UE21H2HHD published
@UE21H2HHD well? :)
@UE21H2HHD I hope the defunct bb didn't break your internet connection ๐จ
Sorry @U04V15CAJ, I was busy helping my Dad do his taxes! Will try now.