acceptable-arm-78601
08/25/2022, 2:26 PMhundreds-father-404
08/25/2022, 2:37 PMhundreds-father-404
08/25/2022, 2:37 PMacceptable-arm-78601
08/25/2022, 2:44 PMcurved-television-6568
08/25/2022, 2:44 PMhundreds-father-404
08/25/2022, 2:50 PMDoes any documentation exist on suggested patterns for moving from a code base consisting of many different repos, languages, and build tools to a monorepo + pants?https://www.pantsbuild.org/docs/existing-repositories is our current guide on adopting in repos. Although we certainly want to expand that. The recent Astransis case study takes a similar approach https://blog.pantsbuild.org/astranis-case-study-wrangling-python-in-a-monorepo/
Something I've briefly considered is a monorepo root that includes our existing repos as git submodules. I assume this wouldn't play nicely with pants' git integration?Yeah I think it would work less well. I haven't used submodules closely, but my understanding is it goes against the monorepo appraoch of everything being at HEAD: https://blog.pantsbuild.org/the-monorepo-approach-to-code-management/ I believe you could do an incremental thing where you set up Pants for each distinct submodule. It would make sharing across the projects harder, but could be an incremental step What's your motivation with submodules?
acceptable-arm-78601
08/25/2022, 3:00 PMWhat's your motivation with submodules?We use a lot of tooling tied to a multi-repo approach (kicking off CI, managing PR approvals, etc.) that we'd need to move away from. I was hoping we'd be able to set up a monorepo that initially contains submodules that then, over time, become part of the monorepo proper. It sounds like the more standard approach would be to convert each repo to use pants for builds and only then attempt consolidation into a monorepo?
hundreds-father-404
08/25/2022, 3:02 PM