babashka 2026-05-19

Is it ok to ask bbin questions here?

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

The bb.edn is:

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

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

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

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

👍 1

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)

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

I added deps.edn:

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

Now it works, thanks

👍 1