logoalt Hacker News

simonask • today at 10:07 AM • 1 reply • view on HN

> Anyway I don't understand the aversion to just using submodules.

The reason is highlighted in the article: Submodules break down catastrophically for shared transitive dependencies, which means that you can't have shared "vocabulary" types outside of the standard library.


Replies

mort96 • today at 10:15 AM

No they don't? You just add the shared transitive dependency as a submodule in the top-level project and express in the build system that it's a dependency in the library's meson.build.

As a significant bonus, this makes the transitive dependencies very visible and provides ecosystem pressure for libraries to reduce their number of dependencies. This is a good thing. Other package management schemes make it a bit too easy to ignore transitive dependencies in my book.

➕ show 1 reply