babashka

Ken Huang 2026-05-19T17:16:04.254759Z

🎉 1
jarppe 2026-05-19T18:18:08.356199Z

Is it ok to ask bbin questions here?

jarppe 2026-05-19T18:18:34.103199Z

I'm trying to add bbin support for my simple tool.

jarppe 2026-05-19T18:18:53.574139Z

The repo is here: https://github.com/jarppe/muutto

jarppe 2026-05-19T18:19:04.308829Z

The bb.edn is:

{:bbin/bin {muutto {:main-opts ["-f" "muutto"]}}
 :paths    ["src" "resources"]}

jarppe 2026-05-19T18:19:21.527109Z

Installation error:

$ bbin install 

Starting install...
----- Error --------------------------------------------------------------------
type:     clojure.lang.ExceptionInfo
Message:  Invalid script coordinates.
If you're trying to install from the filesystem, make sure the path actually exists.
Data:     {:script/lib "", :procurer :http, :artifact :unknown-artifact}
Location: /opt/homebrew/bin/bbin:1543:5

----- Context ------------------------------------------------------------------
1539:   (println (str (dirs/bin-dir cli-opts))))
1540:
1541: (defn- throw-invalid-script [summary cli-opts]
1542:   (let [{:keys [procurer artifact]} summary]
1543:     (throw (ex-info "Invalid script coordinates.\nIf you're trying to install from the filesystem, make sure the path actually exists."
          ^--- Invalid script coordinates.
If you're trying to install from the filesystem, make sure the path actually exists.
1544:                     {:script/lib (:script/lib cli-opts)
1545:                      :procurer procurer
1546:                      :artifact artifact}))))
1547:
1548: (defn- new-script [cli-opts]

----- Stack trace --------------------------------------------------------------
babashka.bbin.scripts/throw-invalid-script - /opt/homebrew/bin/bbin:1543:5
babashka.bbin.scripts/throw-invalid-script - /opt/homebrew/bin/bbin:1541:1
babashka.bbin.scripts/new-script           - /opt/homebrew/bin/bbin:1559:7
babashka.bbin.scripts/new-script           - /opt/homebrew/bin/bbin:1548:1
babashka.bbin.scripts                      - /opt/homebrew/bin/bbin:1570:20
... (run with --debug to see elided elements)
babashka.bbin.cli/bbin                     - /opt/homebrew/bin/bbin:1936:1
babashka.bbin.cli                          - /opt/homebrew/bin/bbin:1942:3
clojure.core/apply                         - clojure/core.clj:662:1
babashka.bbin.cli                          - /opt/homebrew/bin/bbin:1946:3
babashka.bbin.cli                          - /opt/homebrew/bin/bbin:1944:1

jarppe 2026-05-19T18:41:44.985149Z

The bbin install io.github.jarppe/muutto gives same error

borkdude 2026-05-19T18:58:02.132329Z

We have a #babashka-bbin channel too, but fine to ask here. I'll ping @rads since I'm a bit busy tonight

👍 1
rads 2026-05-19T19:46:00.972979Z

You need to have a deps.edn when installing from a Git repo:

{:paths ["src" "resources"]}
Working on fixing this in a future version (https://github.com/babashka/bbin/issues/78)

jarppe 2026-05-19T20:59:04.586819Z

Oh, thanks. I’ll try with deps.edn asap.

jarppe 2026-05-20T04:55:07.907179Z

I added deps.edn:

{:paths ["src" "resources"]}

jarppe 2026-05-20T04:56:00.774049Z

Now it works, thanks

👍 1