tools-deps

octahedrion 2023-11-27T07:35:33.766159Z

is it the case that one can't refer to aliases of dependencies in ancestor deps.edn ? i.e. all dependent dependencies must be included in their :deps for an ancestor to use them. In other words, :aliases are only for a given library, not for anything using that library.

Mark Sto 2024-08-08T09:50:48.576079Z

@alexmiller Hi Alex! The https://clojure.atlassian.net/browse/TDEPS-116 had no activity for years now and not even versioned as a “Backlog”. It would be nice to see some activity there, otherwise it looks like something abandoned or simply overlooked.

Mark Sto 2024-08-08T09:52:05.411259Z

I just stumbled upon this very same old tools.deps issue myself with a Polylith workspace recently, when I decided to factor out a few sub-projects into Polylith workspaces of their own. But, since poly has a convention to keep all dev-time dependencies under the :dev alias, things didn’t click (quite obviously), so I had to duplicate them under the :deps key.

Mark Sto 2024-08-08T09:53:20.109369Z

I’m now thinking about patching the tools.deps and using a patched version locally solely for this project.

favila 2023-11-27T13:15:59.137639Z

Correct, aliases are not transitive

Alex Miller (Clojure team) 2023-11-27T14:29:26.739669Z

You can vote for this here though https://ask.clojure.org/index.php/7843/allow-specifying-aliases-coordinates-that-point-projects?show=7843#q7843

octahedrion 2023-11-27T15:33:28.022339Z

wouldn't that imply that aliases would need to be namespaced ?

octahedrion 2023-11-27T15:35:11.541649Z

oh sorry no - the aliases would be under each dependency ok

Alex Miller (Clojure team) 2023-11-27T16:47:43.294479Z

This is a thing I am interested in doing, will just need some serious thought about all the implications

🙏 2