Skip to content

Vendor mmkv_parser from abrignoni/mmkv-parser and guard it against drift - #1305

Merged
abrignoni merged 1 commit into
mainfrom
feat/vendor-mmkv-parser
Sep 4, 2026
Merged

Vendor mmkv_parser from abrignoni/mmkv-parser and guard it against drift#1305
abrignoni merged 1 commit into
mainfrom
feat/vendor-mmkv-parser

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Vendors scripts/mmkv_parser.py from its new home, https://github.com/abrignoni/mmkv-parser, at commit 526bc0f. The body of the file is byte-identical to main; the only change is a banner naming the upstream repo, file and commit.

  • admin/scripts/check_vendored.py fetches the upstream file at the banner's commit and fails when anything below the banner differs. It runs unconditionally in the lint workflow.
  • admin/test/scripts/test_check_vendored.py pins what counts as drift, offline.
  • admin/test/scripts/test_mmkv_parser.py stays as the core's own guard.

To change the reader, change it upstream, then copy the new file over the body and update the banner's commit line.

🤖 Generated with Claude Code

scripts/mmkv_parser.py now carries a banner naming its upstream repository,
file and commit (abrignoni/mmkv-parser at 526bc0f). The body below the
banner is byte-identical to what was on main.

admin/scripts/check_vendored.py reads that banner, fetches the upstream file
at the pinned commit and fails when anything below the banner differs, so an
edit made here is caught in CI instead of being reverted by the next
re-vendor. It runs unconditionally in the lint workflow; a local checkout can
be compared instead with --upstream. admin/test/scripts/test_check_vendored.py
pins what counts as drift without touching the network.

Proven locally: the check passes against GitHub and against a local checkout,
exits 1 with a diff when one byte below the banner is changed, and passes
again after the byte is restored.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@abrignoni
abrignoni merged commit a41618a into main Sep 4, 2026
8 checks passed
@abrignoni
abrignoni deleted the feat/vendor-mmkv-parser branch September 4, 2026 04:49
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