leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
beders 2020-04-21T16:32:20.054800Z

hi there, I'm looking for a spec definition for leiningen project files. Way too often I'm making mistakes in my project.clj and I'd like to see spec complain to me about it. In many cases I keep adding keywords to sub-maps where they don't belong (and are ignored)

alexmiller 2020-04-21T16:44:40.055300Z

leiningen project files are evaluated and can contain arbitrary code, so I'm not sure you can really make a spec for it

alexmiller 2020-04-21T16:45:08.055700Z

although maybe you could make a pseduo-spec that would validate in lieu of that

beders 2020-04-21T16:57:01.058800Z

good point. But I'd be happy with a spec covering the keys in defproject as documented in the reference file. That should be able to catch some of the stupid mistakes I'm making. Maybe someone has gone through that exercise already. I'd be happy to see the same thing for deps.edn (although I haven't asked Google about that yet)

beders 2020-04-21T16:57:38.059600Z

it can be quite costly to hunt down config problems

alexmiller 2020-04-21T16:58:14.059900Z

there are specs for deps.edn in tools.deps.alpha

beders 2020-04-21T16:58:56.060700Z

excellent thank you

alexmiller 2020-04-21T16:59:01.060900Z

they are not currently actively used during validation as we were trying to support older clojure versions, but eventually will get addeed

alexmiller 2020-04-21T16:59:50.061800Z

there's some scratch code in a comment block at the end that you can use to validate deps.edn files with it

alexmiller 2020-04-21T17:00:14.062200Z

that is, all deps.edn recursively under a dir

beders 2020-04-21T17:00:58.062400Z

thank you very much!