babashka / bbin

Install any Babashka script or project with one command
MIT License
139 stars 9 forks source link

BUG: uninstall not working for some scripts #65

Closed amitnovick closed 1 year ago

amitnovick commented 1 year ago

Hello! :hugs:

Firstly, bookmark-files-combiner is a babashka script I installed a week ago with bbin install and now I want to uninstall it (so I can install a newer version afterwards).

bbin uninstall bookmark-files-combiner
----- 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 "bookmark-files-combiner", :procurer :unknown-procurer, :artifact :unknown-artifact}
Location: /home/amit/.babashka/bbin/bin/bbin:1192:5

----- Context ------------------------------------------------------------------
1188:   (println (str (util/bin-dir cli-opts))))
1189: 
1190: (defn- throw-invalid-script [summary cli-opts]
1191:   (let [{:keys [procurer artifact]} summary]
1192:     (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.
1193:                     {:script/lib (:script/lib cli-opts)
1194:                      :procurer procurer
1195:                      :artifact artifact}))))
1196: 
1197: (defn- new-script [cli-opts]

----- Stack trace --------------------------------------------------------------
babashka.bbin.scripts/throw-invalid-script - /home/amit/.babashka/bbin/bin/bbin:1192:5
babashka.bbin.scripts/throw-invalid-script - /home/amit/.babashka/bbin/bin/bbin:1190:1
babashka.bbin.scripts/load-script          - /home/amit/.babashka/bbin/bin/bbin:1243:11
babashka.bbin.scripts/load-script          - /home/amit/.babashka/bbin/bin/bbin:1228:1
babashka.bbin.scripts                      - /home/amit/.babashka/bbin/bin/bbin:1273:20
... (run with --debug to see elided elements)
babashka.bbin.cli/bbin                     - /home/amit/.babashka/bbin/bin/bbin:1341:1
babashka.bbin.cli                          - /home/amit/.babashka/bbin/bin/bbin:1347:3
clojure.core/apply                         - <built-in>
babashka.bbin.cli                          - /home/amit/.babashka/bbin/bin/bbin:1351:3
babashka.bbin.cli                          - /home/amit/.babashka/bbin/bin/bbin:1349:1
rads commented 1 year ago

Thanks for the report. I’ll get this fixed soon.

rads commented 1 year ago

This will be fixed in the upcoming 0.2.0 release.

rads commented 1 year ago

0.2.0 has been released.