News for hackers. Stuff that matters.
Re:The semver trick (2019) by sethammons on Thursday December 26, 2024 @02:57PM (#42517332)
> And if you’re trying to skirt Conway, having multiple teams sharing a single deployable, you’re gonna have a bad time. Because good luck getting all teams to agree to drop everything and upgrade next sprint.

this is why I'm not on team monorepo. Let other teams vendor their dependencies and upgrade on their own time. Just don't go trying to release N versions. Measure who is on an old version and work with them to update. But again, this slow team allows the other N-1 teams to adopt the new version and provide value to the org.

for those of you who are pro monorepo and have worked in one with dozens of teams in different orgs who have competing priorities and can't upgrade a dependency in lock-step, how have you solved this?

Re:The semver trick (2019) by osigurdson on Thursday December 26, 2024 @03:27PM (#42517528)
Does monorepo confer that all projects use the same dependencies? Binary dependencies seem orthogonal to how source code is managed.
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.

Re:The semver trick (2019) by hinkley on Saturday December 28, 2024 @01:40PM (#42533315)
I’ve done monorepo, separate compilation units before. It has its own set of issues but it cuts down on circular dependencies and makes more sense than having sixty repositories checked out. Those are hell.
Re:The semver trick (2019) by mgaunard on Thursday December 26, 2024 @03:15PM (#42517452)
1. ensure you have continuous integration against both stable and latest versions of everything, with the stable set of all transitive dependencies defined on a per-project basis, and what gets used for releases.

2. people are expected to fix the latest build whenever they have spare cycles. The incentive is that it is part of the pipeline for code reviews and can only be bypassed by the project owner. This means you'll need to support both stable and latest concurrently (bumping stable is also an option to simplify the requirement).

3. if you added conditional support for old stable/new latest and latest was eventually made stable, you can refactor that code.

Re:The semver trick (2019) by frizlab on Thursday December 26, 2024 @02:59PM (#42517347)
Wouldn’t subtrees fix this instead of a mono-repo? Or even (gasp) submodules?
Re:The semver trick (2019) by osigurdson on Thursday December 26, 2024 @03:28PM (#42517535)
You mentioned sub modules - you are now on call until someone else mentions them again.
Re:The semver trick (2019) by frizlab on Thursday December 26, 2024 @04:41PM (#42518055)
I’m fine with that :)
Re:The semver trick (2019) by dallasg3 on Thursday December 26, 2024 @03:22PM (#42517492)
I was looking into Paket for this on .NET.

https://github.com/fsprojects/Paket