Tectonix: The bedrock of Shopify's Monorepo
summary
Shopify consolidates a 30 GB, million‑file mono repo called World with a Nix-based build layer named Tectonix that patches Nix to add lazy trees and Git object database integration, uses Git sparse‑checkout in cone mode and a zone manifest to map dependencies, and adds a Windex binary‑cache lookup so builds drop from seconds to ~50 ms when available. The system forks Nix, resolves cross‑zone imports without full checkouts, and already runs in CI and local dev.
AI-written summary · about
chapters (11)
- 0:00Introduction and context
- 3:13Re-adopting Nix in 2024
- 10:19Mono repo structure and zones
- 11:42Handling large Git repositories
- 13:31Cross-zone dependencies challenge
- 15:56Introducing Tectonics
- 21:59Tectonix architecture
- 26:50Three principles of Tectonix
- 33:06AI and future of development
- 35:14Current state and vision
- 41:55Q&A
