Skip to content

[bug] V2 Builds Crash on shallow checkout #2374

@jamestalmage

Description

@jamestalmage

We use moon both to run our CI pipeline (github actions), and deploy our build (Cloudflare Pages / Workers Build).

Cloudflare does a shallow checkout. V1 would work, but issue a warning that it couldn't use git to determine affected files. V2 just fails to run:


15:05:48.997 | [ WARN 2026-02-21 20:05:48.995] moon_app::queries::changed_files  Detected a shallow checkout, unable to run Git commands to determine changed files.
-- | --
15:05:48.997 | [ WARN 20:05:48.995] moon_app::queries::changed_files  A full Git history is required for affected checks, falling back to an empty files list.
15:05:49.077 | Error: app::ci::no_shallow
15:05:49.078 |  
15:05:49.078 | × CI requires a full VCS history or a base revision to operate correctly.
15:05:49.078 | │ Please avoid shallow checkouts.
15:05:49.078 |  

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions