logoalt Hacker News

Google copybara: moving code between repositories

49 pointsby reconnectingyesterday at 11:45 PM6 commentsview on HN

Comments

schrodingertoday at 1:31 AM

To those who have used it: is it handy for situations where you have multiple repos that want to share a little code, but it's not worth the trouble of extracting a library, referencing it, publishing versioned releases, updating dependent repos, etc?

And instead just "sync" a code folder from one main repo (perhaps containing common domain models) to other repos?

Basically the Go philosophy that a little bit of copying is better than a lot of dependency?

show 2 replies
MarkSweeptoday at 1:16 AM

Some other interesting tools in the space. Rust is using a tool called Josh to sync commits:

https://josh-project.dev

The blog post from the Rust people:

https://blog.rust-lang.org/inside-rust/2026/06/04/how-josh-h...

Meta used to have an open source tool called fbshipit. But according to its open source repo they no longer use it:

https://github.com/facebookarchive/fbshipit

Any others in this space?

namanyaygtoday at 12:31 AM

Nice, I built something similar ~5 years ago using nested git repos and scripts to accomplish a similar purpose of combined private and public repos.

My shell script definitely wasn't google scale tho!

show 1 reply
lysacetoday at 12:42 AM

Cute name. (Naming is hard and important.)

show 1 reply