Repository navigation
Explain a missing Git installation when deploying - #342
Merged
Merged
Conversation
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.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 0d8c9eb | Nov 23 2026, 02:22 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
On an installation with source storage,
widefleet deployon a machine without Git stopped before the build with: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
outputhelper named Git.What changes
crates/platform-cli/src/source.rs: every Git call in source storage now goes through oneexecutehelper. When Git cannot be started, the error readsCould not run Git (…). Install Git to use Widefleet source storage; deploy and preview skip it with --no-source.--namekeeps its own message, because there--nameis the way forward without Git, not--no-source.Tests
deploywith aPATHthat contains no Git fails before the build with the Git hint and noI/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.

Confidence Score: 5/5
This PR appears safe to merge.Summary
Routes Git calls in
source.rsthrough one helper so startup failures explain how to install Git or skip source storage.Reviews (1) · Last reviewed commit: "Separate test setup from assertions" · Reviewed by Greptile