ci(codegen): Check 3 sweeps both directions — canonical protos missing a vendored copy now fail
This commit is contained in:
@@ -206,7 +206,8 @@ publish` ship them inside the `.crate`, making the crate buildable standalone
|
||||
with no access to the rest of the mxaccessgw repo. Any Contracts proto change
|
||||
must refresh `clients/rust/protos/` in the same commit; `scripts/check-codegen.ps1`
|
||||
Check 3 byte-compares the vendored copies against the canonical protos and
|
||||
fails on drift. Because the vendored protos make a standalone build possible,
|
||||
fails on drift — in both directions, so a newly added canonical proto that
|
||||
was never vendored fails there rather than at a consumer's standalone build. Because the vendored protos make a standalone build possible,
|
||||
`cargo package`/`cargo publish` run **with** verification (no `--no-verify`) —
|
||||
a `cargo package` that cannot build from the vendored tree alone would mean
|
||||
the vendored copies are stale, and verification is what catches that before
|
||||
|
||||
Reference in New Issue
Block a user