Skip to content

fix(api-sync): default --check to the committed snapshot - #41

Merged
ericviana merged 1 commit into
mainfrom
eric/check-default-snapshot
Aug 4, 2026
Merged

ericviana merged 1 commit into
mainfrom
eric/check-default-snapshot

Conversation

@ericviana

Copy link
Copy Markdown
Member

A bare php scripts/api-sync.php --check on a fresh clone of main failed with a missing-file error because the default spec path is spec-current.json, which only exists on the api-sync-data branch. CI was unaffected (it passes --spec explicitly); this only bit local runs. Non-apply modes now default to the committed spec-snapshot.json, mirroring the node patcher.

No behavior change for --apply or any invocation that passes --spec.

https://claude.ai/code/session_01F1stiNzuNtJXoXtiW9ZCbs

…rrent

spec-current.json only exists on the api-sync-data branch, so a bare
--check on a fresh clone of main failed on a missing file. Mirrors the
node patcher's defaulting: apply reads spec-current, everything else
asserts against the committed snapshot.

Claude-Session: https://claude.ai/code/session_01F1stiNzuNtJXoXtiW9ZCbs
@ericviana
ericviana merged commit 3b06263 into main Aug 4, 2026
3 of 4 checks passed
@ericviana
ericviana deleted the eric/check-default-snapshot branch August 4, 2026 15:20
@BernardoSM

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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.

2 participants