Fork me on GitHub
#tools-deps
<
2023-05-30
>
cfleming04:05:34

I’m trying to use a basis to figure out which paths were added from the :test alias. I’m not sure how to achieve this. I can get the paths that come from aliases easily enough (e.g. from :classpath where :path-key is :extra-paths), but I can’t figure out how to get the :extra-paths from :test. I can look them up under :aliases but if I understand correctly that can contain unexpanded substitutions. I could duplicate that logic but that’s what I’m trying to avoid. Is there a way I can do this?

Alex Miller (Clojure team)05:05:25

I don't think that's available in the api right now

seancorfield05:05:12

If you use (tools.deps/combine-aliases basis [:test]) and then look at :test in that result, is that what you need? Or is that the "unexpanded substitution" you mentioned?

cfleming07:05:09

Yeah, in the end I just reimplemented the expansion logic. It would be nice to not have to, though.