babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
yubrshen 2021-02-13T06:30:19.489900Z

@borkdude For the example in the section on Carve, at https://book.babashka.org/#_uberscript The executable carve for carve-0.0.2-linux-amd64/carve It is too aggressive, carving out function delete, and predicate which cause complaints of

○ → time bb glob-uberscript.clj '*.clj'
----- Error --------------------------------------------------------------------
Type:     clojure.lang.ExceptionInfo
Message:  Could not resolve symbol: delete
Location: /tmp/glob-uberscript.clj:108:10
Phase:    analysis

----- Context ------------------------------------------------------------------
104:         [root & link-options]
105:         (when (apply directory? root link-options)
106:           (doseq [path (.listFiles (file root))]
107:             (apply delete-dir path link-options)))
108:         (delete root))
              ^--- Could not resolve symbol: delete
109:
110:       (defn move
111:         "Move or rename a file to a target file. Requires Java version 7 or greater. Optional
112:          [copy-options](<http://docs.oracle.com/javase/7/docs/api/java/nio/file/CopyOption.html>)
113:          may be provided."
Using the solution for JVM works. My environment is Ubuntu 20.04 in WSL1. Please let me know if you need any more information. Thanks!

borkdude 2021-02-13T08:48:06.490400Z

@yubrshen What are you carving? Do you have a repro?

yubrshen 2021-02-14T17:27:56.495900Z

I'm carving with the example in Babashka book, glob.clj

borkdude 2021-02-15T08:41:57.497100Z

I'll take a look

borkdude 2021-02-15T08:50:14.497300Z

I can reproduce the issue now, thanks

borkdude 2021-02-15T08:52:30.497500Z

@yubrshen This is fixed with version 1.6.307 of clj-commons/fs. I'll update the book

🙏 1
borkdude 2021-02-13T08:59:16.491Z

@rahul080327 brought to my attention that failjure, a monadic error lib, works with bb: https://github.com/adambard/failjure