This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-06
Channels
- # announcements (1)
- # babashka (7)
- # beginners (93)
- # bristol-clojurians (1)
- # cider (7)
- # clj-kondo (42)
- # cljs-dev (9)
- # clojure (67)
- # clojure-europe (4)
- # clojure-france (4)
- # clojure-germany (2)
- # clojure-italy (3)
- # clojure-nl (10)
- # clojure-uk (62)
- # clojurescript (11)
- # clojurex (3)
- # conjure (77)
- # cursive (16)
- # datomic (105)
- # docker (4)
- # editors (3)
- # events (5)
- # fulcro (34)
- # jobs (1)
- # juxt (7)
- # kaocha (7)
- # lambdaisland (3)
- # lein-figwheel (2)
- # leiningen (19)
- # malli (14)
- # meander (6)
- # mid-cities-meetup (6)
- # off-topic (20)
- # pedestal (2)
- # reagent (17)
- # reitit (7)
- # remote-jobs (1)
- # shadow-cljs (17)
- # spacemacs (23)
- # specter (2)
- # tools-deps (34)
i end up getting this error however
Unable to process file: src/**/*.clj because: .FileNotFoundException: src/**/*.clj (No such file or directory) Leaving it unchanged!
@chadhs is src/**/*.clj
shell syntax? I see that ls src/**/*.clj
lists Clojure files, with a bit different behavior on Bash and Zsh.
I'd consider either looking into if zprint supports file search itself, or try to make some pipeline. If you want to go for the pipeline approach, something like
find src -iname '*.clj' | xargs echo
could work. When run from Lein, I suspect you'll have to bash -c
or similar to get the pipe to work.
bash -c 'find src -iname "*.clj" | xargs echo'
Not sure if it's a good idea to put that thing into a lein alias. You'll be the judge 🙂
@teodorlu it’s not pretty but i have a format.sh with this
#!/usr/bin/env zsh
unset CLASSPATH
lein zprint src/**/*.clj*
that’s the rub. not sure if i want to rely on that. it’s on macs by default; so i’ll have to think on that more.
goal is pre-commit hook that will format with zprint and then lint with clj-kondo all using dev deps and aliases in project.clj so there’s no reliance on having the os binaries of those tools installed.
Is find
preinstalled on macs? I don't think I've found a Linux system missing it.
lein zprint `find src -iname '*.clj'
`yes, since it’s a BSD under the hood. of the utils are a bit different than their GNU counterparts, but yes find is there ^_^
I’m trying to use :pedantic :abort?
to make sure I have no ambiguous dependencies, but it doesn’t appear to behave the way I’d like. For example, I currently have
[s3-wagon-private "1.3.3"] -> [com.fasterxml.jackson.core/jackson-core "2.9.9"]
overrides
[s3-wagon-private "1.3.3"] -> [com.fasterxml.jackson.core/jackson-databind "2.9.10.1"] -> [com.fasterxml.jackson.core/jackson-core "2.9.10"]
but jackson-core is in :managed-dependencies
, so I’d expect that there aren’t problems with that depNot sure if :plugins works with :managed-dependencies?