babashka / bbin

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

How do we use `spec.alpha` with Clojure and Babashka together? #10

Closed rads closed 1 year ago

rads commented 2 years ago

Right now bbin only looks in deps.edn for dependencies since we're using babashka.deps/add-deps. In some cases, though, we need to add a special spec.alpha dependency for Babashka on top of the deps.edn:

 :deps {org.babashka/spec.alpha {:git/url "https://github.com/babashka/spec.alpha"
                                 :git/sha "8df0712896f596680da7a32ae44bb000b7e45e68"}
        local/deps {:local/root "."}}

The problem is if we include the org.babashka/spec.alpha in deps.edn, we can no longer use the library as a dependency in Clojure JVM.

If we look in bb.edn for dependencies, this will only work with Gitlibs. Is there a better way to solve this?

rads commented 1 year ago

The spec.alpha library is now bundled with Babashka since 1.0.67 so the org.babashka/spec.alpha can be omitted going forward.