bbin install <non raw gist link> does not work
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
Research direction
Start by reproducing the reported bbin install command with the non-raw gist URL and compare it with the raw URL that works. Inspect the install dispatch around the reported bbin line 629 and trace how gist URLs are classified; done means non-raw gist links install successfully without breaking raw links.
Written by the indexing model from the issue text.
Description
bbin install currently does not seem to work with non-raw gist links. It might be a nice convenience feature to add such capability.
I tried to run bbin with a non-raw gist link: bbin install https://gist.github.com/chase-lambert/c5533d8e8fbb71268a25e83ecf8e3cc6 but got the following error:
----- 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 "https://gist.github.com/chase-lambert/c5533d8e8fbb71268a25e83ecf8e3cc6", :procurer :http, :artifact :unknown-artifact}
Location: /home/chase/.babashka/bbin/bin/bbin:629:11
----- Context ------------------------------------------------------------------
625: [:local :dir] (install-deps-git-or-local cli-opts' summary)
626: [:local :file] (install-local-script cli-opts')
627: [:local :jar] (install-local-jar cli-opts')
628: [:maven :jar] (install-deps-maven cli-opts')
629: (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.
630: {:script/lib (:script/lib cli-opts')
631: :procurer procurer
632: :artifact artifact})))))))
633:
634: (defn uninstall [cli-opts]
----- Stack trace --------------------------------------------------------------
babashka.bbin.scripts - /home/chase/.babashka/bbin/bin/bbin:629:11
babashka.bbin.cli/run - /home/chase/.babashka/bbin/bin/bbin:657:5
babashka.bbin.cli/run - /home/chase/.babashka/bbin/bin/bbin:654:1
babashka.bbin.cli - /home/chase/.babashka/bbin/bin/bbin:671:10
babashka.bbin.cli/bbin - /home/chase/.babashka/bbin/bin/bbin:706:5
babashka.bbin.cli/bbin - /home/chase/.babashka/bbin/bin/bbin:703:1
babashka.bbin.cli - /home/chase/.babashka/bbin/bin/bbin:709:3
clojure.core/apply - <built-in>
babashka.bbin.cli - /home/chase/.babashka/bbin/bin/bbin:713:3
babashka.bbin.cli - /home/chase/.babashka/bbin/bin/bbin:711:1
Everything worked as expected when I used the raw link: https://gist.githubusercontent.com/chase-lambert/c5533d8e8fbb71268a25e83ecf8e3cc6/raw/9cc7b4208f9bed2609f4736c4f469e1828273af5/chatgpt-cli.clj
- Dominant language
- Clojure
- Stars
- 195
- Forks
- 15
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from babashka/bbin
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 64/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nextjournal/clerk#830 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
IOP tokens release blocker team qa team qa autotests WG adoption
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
penpot/penpot#13540 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
izhangzhihao/intellij-rainbow-brackets#2903 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100