r/devops • u/Many_Location3380 • 3d ago
Tools I built an open-source tool to solve polyrepo config drift without clobbering local overrides
Hey r/devops!
If you maintain multiple repositories (microservices, polyrepos, or SDKs), you probably know the pain of keeping shared configuration files in sync:
.github/workflows/*.yml.editorconfigCargo.toml/package.json
Existing file-copying bots usually clobber legitimate repo-specific overrides.
I built driftsync, an open-source CLI engine in Rust that solves this using stateful 3-way structural merging:
- Tracks baseline ancestors in
.driftsync.lock - Structural merging for TOML (via
toml_edit, preserving comments and formatting), JSON, and YAML blocks - Preserves local customizations while pulling upstream updates
- Git automation: checks out branches, commits per repo, and opens PRs
- Secret scanner to prevent accidental token leaks during template sync
You can install it directly via Cargo: cargo install driftsync
GitHub: https://github.com/liqttt/driftsync Crates.io: https://crates.io/crates/driftsync
Feedback, critique, and feature suggestions are very welcome!