Skip to content

Explain a missing Git installation when deploying - #342

Merged
tnkuehne merged 2 commits into
mainfrom
cli-missing-git-hint
Nov 23, 2026
Merged

tnkuehne merged 2 commits into
mainfrom
cli-missing-git-hint

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Why

On an installation with source storage, widefleet deploy on a machine without Git stopped before the build with:

I/O failed: No such file or directory (os error 2)

The branch check and a few other source steps started Git directly, so a missing Git surfaced as a bare I/O error. Only calls through the existing output helper named Git.

What changes

  • crates/platform-cli/src/source.rs: every Git call in source storage now goes through one execute helper. When Git cannot be started, the error reads Could not run Git (…). Install Git to use Widefleet source storage; deploy and preview skip it with --no-source.
  • Installations without source storage are unchanged; deploy does not start Git there.
  • Preview naming without --name keeps its own message, because there --name is the way forward without Git, not --no-source.

Tests

  • New CLI integration test: deploy with a PATH that contains no Git fails before the build with the Git hint and no I/O failed. Without the fix the same test fails with the old message.
  • RUN_CLI_TESTS=1 vitest run apps/control-plane/tests/cli.test.ts (62 passed), cargo test -p platform-cli (62 passed), cargo clippy -p platform-cli --all-targets -D warnings, oxlint and oxfmt on the changed test file.

RetriggerView in GreptileConfidence Score: 5/5

This PR appears safe to merge.

Summary

Routes Git calls in source.rs through one helper so startup failures explain how to install Git or skip source storage.

  • Source-storage commands explain when Git is missing.

Reviews (1) · Last reviewed commit: "Separate test setup from assertions" · Reviewed by Greptile

Deploying an app with source storage on a machine without Git stopped
with a bare "I/O failed: No such file or directory" before the build,
because the branch check spawned Git directly. Every Git call now goes
through one helper that names Git and the --no-source alternative.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs 0d8c9eb Nov 23 2026, 02:22 PM

@tnkuehne
tnkuehne merged commit 1a69110 into main Nov 23, 2026
16 checks passed
@tnkuehne
tnkuehne deleted the cli-missing-git-hint branch November 23, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant