tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
2021-03-28T09:20:47.246200Z

is there a deps.local.edn which is not tracked by git but allows for per-project customization?

borkdude 2021-03-28T09:36:09.246400Z

I don't believe so

2021-03-28T10:07:28.247100Z

Then how do you customize the project setting without hindering other developers?

borkdude 2021-03-28T10:16:01.247400Z

what project setting would you customize?

borkdude 2021-03-28T10:18:20.248Z

if you mean personal developer tools, you can put those in your ~/.clojure/deps.edn

2021-03-28T10:44:29.249Z

like project specific different alias

borkdude 2021-03-28T10:49:59.249500Z

can you be more specific? why don't you just add your alias to the deps.edn?

2021-03-28T12:00:47.250800Z

because that file is tracked in git. and shared by other devs.

borkdude 2021-03-28T12:03:12.251200Z

do your colleagues mind if you put a personal fully qualified alias in there?

favila 2021-03-28T13:17:04.252100Z

There is not, but this would be really useful for monorepos

favila 2021-03-28T13:20:21.255100Z

There’s a tools deps lib function that merges deps maps (same thing used to merge personal +project deps.edn). We generate the project deps.edn by calling that on the repo + project deps edn with make

borkdude 2021-03-28T14:06:31.255400Z

we do the same using a babashka script, but the resulting deps.edn lives in our git, so it doesn't contain "personal" config let's say

seancorfield 2021-03-28T18:26:08.255600Z

After pushing for an extra deps file for a long time for monorepo use, I eventually realized we could do everything we needed by approaching the structure a bit differently: https://corfield.org/blog/2021/02/23/deps-edn-monorepo/