turbo
644b2eff - feat: Show turbo.lock progress in turbo setup (#14949)

Commit
17 days ago
feat: Show turbo.lock progress in turbo setup (#14949) ## Why `turbo setup` printed nothing while it resolved and wrote `turbo.lock`. That step contacts registries and can take 15 seconds or more, so the command looked hung. In a repository that declares Rust, the step showed no spinner at all. ## What changed - `provision::run` decides once whether the run creates or updates the lock, and reports a message before and after the write. - The spinner shows that message, then returns to `Preparing ...` for downloads: ```text >>> Creating turbo.lock for node, pnpm, rust, and rustup >>> Updating turbo.lock for node and pnpm ``` - When Rust is declared, the lock step gets its own spinner. That spinner is cleared before `rustup` writes to the terminal. ## Scope - No message appears when the lock already matches, because the write is skipped. - Non-interactive runs (CI, piped output) still show nothing during this step. A plain status line for that case is a follow-up. ## Blast Radius Only the interactive `turbo setup` spinner text changes. Lock resolution, lock contents, and stdout output stay the same. ## Verification - I ran `turbo setup --tools-only --no-frozen` in a PTY in a scratch repository that declares node and pnpm. The spinner showed `Creating turbo.lock for node and pnpm`. A rerun with no changes showed no lock message. After I changed `engines.node` to `22.x`, it showed `Updating turbo.lock for node and pnpm`. - I ran the same command with this repository's `rust-toolchain.toml` and `experimentalCargoWorkspaces`. It showed `Creating turbo.lock for node, pnpm, rust, and rustup` and exited 0.
Author
Parents
Loading