News for hackers. Stuff that matters.
Re:The semver trick (2019) by adastra22 on Thursday December 26, 2024 @04:05PM (#42517813)
Usually, yes. Monorepo means all dependencies are checked into the same repo. Even external dependencies (when source available) are checked in.
Re:The semver trick (2019) by osigurdson on Friday December 27, 2024 @01:26AM (#42520318)
Usually we are using package managers and just referencing packages. However, even in the hypothetical where I am downloading binaries and checking them in, I still don't see the relationship to the monorepo. I can have a monorepo with 100 folders representing 100 programs, each of these can have completely separate dependencies, languages, etc.

Dependency versions matter when they are all part of the same program or library. Then you have the diamond dependency issue and related problems. However, none of this is related maintaining code in a monorepo. One program can be maintain in 10 different repos (impractical but possible) and still have the diamond dependency issue.