Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs/unzip not available in babashka 0.6.2 #1030

Closed
tobias-hammerschmidt opened this issue Oct 12, 2021 · 3 comments
Closed

fs/unzip not available in babashka 0.6.2 #1030

tobias-hammerschmidt opened this issue Oct 12, 2021 · 3 comments

Comments

@tobias-hammerschmidt
Copy link

version

0.6.2

platform

Windows 10 Version 1909 (Build 18363.1801) x64

problem

According to the commit history babashka 0.6.2 should include the latest addition to babashka.fs namely the function unzip. However when trying to call the function the symbol can't be resolved.

repro

Babashka v0.6.2 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.

user=> (require '[babashka.fs :as fs])
nil
user=> (doc fs/path)
-------------------------
babashka.fs/path
([f] [parent child] [parent child & more])
  Coerces f into a Path. Multiple-arg versions treat the first argument as
  parent and subsequent args as children relative to the parent.
nil
user=> (doc fs/unzip) 
nil
user=> (fs/unzip)     
Could not resolve symbol: fs/unzip [at <repl>:4:2]
user=>

expected behavior

Calling unzip should be possible.

@borkdude
Copy link
Collaborator

Aw, you're right, I forgot to add the mapping. Will do now.

borkdude added a commit that referenced this issue Oct 12, 2021
@borkdude
Copy link
Collaborator

@tobias-hammerschmidt Until the next release, you can access this function by adding babashka/fs from source. I just published 0.1.0:

(ns fstest
  (:require [babashka.deps :as deps]))

(deps/add-deps '{:deps {babashka/fs {:mvn/version "0.1.0"}}})

(require '[babashka.fs :as fs] :reload) ;; :reload is needed to load fs from source!

(fs/unzip ,,,)

@tobias-hammerschmidt
Copy link
Author

Thanks for the workaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants