Hacker News
Google Copybara resurfaces for monorepo-to-open-source syncing
- Category: Pulse
- Status: discussion
- Sources: repository, HN discussion
- Summary: Google's Copybara, a tool for moving code between repositories with transformations, reached the Hacker News front page at 278 points and 54 comments. It syncs code from an internal monorepo out to public repositories, remapping paths, excluding files, and rewriting commit metadata in a single pass.
- Comments: HN commenters describe Google's real-world use as one-way export from its Piper monorepo to GitHub, note that history preservation is implemented as cherry-picks with rewritten commits that embed the original hashes in commit trailers, and compare it to git subtree, Josh (used by Rust), and Meta's fbshipit.
- Why it matters: Teams publishing open source from a monorepo face the same path-remapping and history-rewriting problem Copybara automates.