Instructions
Update the GPUI git submodule and all related Cargo.toml references to the latest commit on origin/main.
Steps
Fetch latest from remote:
cd vendor/gpui && git fetch originIdentify target commit: Use the latest commit on
origin/main(or a specific commit/branch if the user provides one via$ARGUMENTS).git log --oneline origin/main -5Update submodule pointer:
git -C vendor/gpui checkout <commit-hash>Update
Cargo.toml: Find allrev = "..."entries pointing to the gpui git repo in the workspaceCargo.tomland update them to the new commit hash. The entries look like:gpui = { git = "https://github.com/BumpyClock/gpui", rev = "<old-hash>", ... } gpui_platform = { git = "https://github.com/BumpyClock/gpui", rev = "<old-hash>", ... }Update both
revvalues to the new short commit hash (first 10 chars).Build and verify:
cargo buildIf build fails: Inspect errors and fix any breaking API changes in the codebase. Common issues:
- Borrow checker issues from upstream tree-sitter/API changes
- New/removed/renamed methods in gpui APIs
- Changed trait signatures
Run clippy:
cargo clippy -- --deny warningsReport summary: Show old commit, new commit, what changed (list new commits), and whether build/clippy passed.
Notes
- The submodule is at
vendor/gpuiand trackshttps://github.com/BumpyClock/gpui. - The
Cargo.tomlat the workspace root has[workspace.dependencies]entries forgpuiandgpui_platformthat pin to a specificrev. - Always update both the submodule pointer AND the Cargo.toml rev in lockstep.
- If
$ARGUMENTScontains a specific commit hash or branch, use that instead oforigin/main.