Fork me on GitHub
#tools-deps
<
2020-01-27
>
salam22:01:03

i hope this is the right channel to ask questions about deps.edn and the clojure cli tools. i was wondering whether deps.edn can be spec'ed so that if one makes a mistake (e.g., putting a string literal where a symbol is expected), the cli tools can give some kind of feedback on the said mistake as spec errors. has the core team considered this?

andy.fingerhut23:01:10

This is a reasonable place to ask such questions about those tools. I'm not part of the core team, and do not know their views on stricter checking of deps.edn file contents.

salam23:01:19

thanks for the response, @U0CMVHBL2 🙂

Alex Miller (Clojure team)23:01:44

There are specs in the tools.deps repo

Alex Miller (Clojure team)23:01:18

It’s not currently checked as we were trying to support older Clojure versions although we could probably bump that req now

salam00:01:13

aha, indeed: https://github.com/clojure/tools.deps.alpha/blob/master/src/main/clojure/clojure/tools/deps/alpha/specs.clj yeah, being able to leverage this in clojure 1.10.x (or later versions) would be great. i'll settle for the comment form at the bottom of that spec file for now. 🙂 thanks!

Alex Miller (Clojure team)00:01:04

Yeah, I used that to validate all the deps.edn I had lying around :)