On Sun, Nov 22, 2026 at 4:00 PM Lee Garrett <[email protected]> wrote: > In first approximation I'd argue that a monorepo should also be one Debian > source package, and produce multiple binary packages if needed. This would > follow the principle of least expectation.
It would be too much work, and easily made mistakes in upload. Just imagine how we can manage the dependency update? We currently cannot even handle the dependency sync and update from build-deps to depends for all -dev packages in each package update. > The difficulty arises when the modules in the monorepo have different release > tags and schedules. Take https://github.com/hashicorp/go-secure-stdlib for > example, which I'm in the process of packaging. strutil is git tagged as > strutil/v0.1.2, whereas parseutil is tagged as parseutil/v0.2.0. To complicate > things further, parseutil/ has a few more unreleased commits after that. > > So it's not clear to me how in a "one monorepo = one source package" scenario > we > can sanely cover differing version numbers for submodules and package the > latest > tagged version. AFAICS most go packages in Debian are a git snapshot and we > just > assume that upstream will not merge unfinished code into main. Common go > development practice doesn't really cleanly map to source packages in Debian. >From my own experience. Most of time, the unreleased commits won't really matter. And we may use debian/patches/ to revert the unrelease commits if needed(FTBFS in rdeps). A practical middle ground for a monorepo is to package released tags by default and fall back to git HEAD only when a submodule needs newer changes before its tag aligns with the main module. Since git HEAD already contains the latest code across the submodules, stepping to a git snapshot gives you up-to-date submodule sources without splitting the repository into separate Debian source packages right away. > I'm not too familiar with transitions like this, the simplest solution I'd > suggest is: > - upload moby/moby > - Switch all relevant packages to the build-dep on the new package > - Remove moby/moby/api and moby/moby/client from the archive > - We'll notice if we missed something since it'll FTBFS now Looks correct. Best regards, -- -Andrew
