multiformats / clj-multihash

Clojure implementation of the Multihash spec
The Unlicense
40 stars 15 forks source link

Make library compatible with babashka #15

Closed borkdude closed 1 year ago

borkdude commented 2 years ago

Nextjournal is using this library. I was asked to make this library compatible with babashka. I wonder if you are willing to accept this back into the original library or if we should maintain our own fork. I'd be happy to discuss next steps if you're not happy with something in this PR.

I've made the following changes that do not affect the behavior in CLJ and CLJS (with regards to the unit tests at least):

Feel free to squash-merge all commits into one single commit. I can also do this prior to merge if you want.

Locally all tests pass:

$ bb test

Testing multihash.core-test

Testing multihash.digest-test

Ran 11 tests containing 391 assertions.
0 failures, 0 errors.

$ lein test

lein test multihash.core-test

lein test multihash.digest-test

Ran 11 tests containing 392 assertions.
0 failures, 0 errors.

$ lein cljs-test
WARNING: :preloads should only be specified with :none optimizations

;; ======================================================================
;; Testing with Phantom:

Testing multihash.core-test

Ran 8 tests containing 370 assertions.
0 failures, 0 errors.
borkdude commented 1 year ago

@greglook I wonder if you've had time to consider this PR.

rvagg commented 1 year ago

closing due to inactivity, archiving repo