@eval2020 When running the fs tests locally on my machine I'm getting:
$ bb test
Running tests in #{"test"}
Testing babashka.fs-test
FAIL in (glob-test) (fs_test.clj:107)
:hidden option should be disabled by default should be enabled (when not provided) when pattern starts with a dot
expected: (= (quote (".gitignore")) (map normalize (fs/glob "." ".git*")))
actual: (not (= (".gitignore") (".gitignore" ".git")))
Any ideas?Can anyone run fs's tests locally using bb test with the most recent commits?
checking…
glob does not return folders for me - is this OSX specific? Can provide a patch for this pattern to be more specific.
are you on macos?
yes
m1?
yep
.git is not a folder in my case, it is
$ cat .git
gitdir: ../.git/modules/fsbecause of the submodules
you are likely running it as a non-submodule of babashka
which explains the issue
ok, Il
I'll just change the pattern myself
no submodules here indeed
done
I have some doubts about the auto-hidden thing since on Windows files are hidden via an attribute, not by convention
Maybe fs should just treat all dot-starting files as hidden, or maybe not...
anyway for glob/match it probably made sense what we did
so (glob "." ".some") on Win already yielded dotfiles then? Which makes the code now more portable?
> anyway for glob/match it probably made sense what we did ah you mean the same