Fork me on GitHub
#tools-deps
<
2021-05-23
>
cfleming22:05:42

I’m working on a bug in Cursive where I get the “Manifest type not detected” bug when using :local/root in :override-deps. The bug is basically because Cursive doesn’t call into deps with the CWD set to the project directory. I do set *the-dir* when reading the deps maps with modern deps versions, but perhaps the override is applied later during deps calculation? I’m not sure. I’ve had to fix several bugs of this type, and I think the most robust solution would be to absolutise all the paths in the deps map before passing it to t.d.a. I think the following places in the deps map are where I would have to do it, are there any that I’ve missed?

:local/root "path"
:paths ["src"]
:extra-paths ["test" "resources"]
:replace-paths ["foo" "bar"]
:classpath-overrides {org.clojure/clojure "/my/clojure/target"}

seancorfield23:05:05

@cfleming and account for paths including aliases that are expanded to lists of strings.

cfleming23:05:12

@seancorfield Oh, you mean that the paths include a keyword alias ref? Good catch, thanks.

cfleming23:05:24

Right, I remember that now.