Implementation of the above idea: https://github.com/borkdude/cpm
@borkdude for linux, i changed the .cpm.edn file for babashka to be:
{:package/name org.babashka/babashka
:package/description ""
:package/version "0.2.1"
:package/license ""
:package/artifacts
[{:os/name "Mac.*"
:os/arch "x86_64"
:artifact/url "<https://github.com/borkdude/babashka/releases/download/v0.2.1/babashka-0.2.1-macos-amd64.zip>"
:artifact/executables ["bb"]}
{:os/name "Linux.*"
:os/arch "amd64"
:artifact/url "<https://github.com/borkdude/babashka/releases/download/v0.2.1/babashka-0.2.1-linux-amd64.zip>"
:artifact/executables ["bb"]}]}
then i was able to follow your readme.PR welcome :)
lol, ok, i'll send one 🙂
I pushed an update to bb, now cpm is also executable using bb:
$ bb -cp src:test-resources -m cpm.main clj-kondo
/Users/borkdude/.cpm/packages/clj-kondo/clj-kondo/2020.09.09
which is fast :)indeed:
$ time bb -cp src:test-resources -m cpm.main clj-kondo
/home/user/.cpm/packages/clj-kondo/clj-kondo/2020.09.09
real 0m0.015s
user 0m0.009s
sys 0m0.006s
Void Linux has now updated to clj 697 😃