Skip to content

Replace string replace workaround with extern_path#482

Merged
mxpv merged 2 commits into
mainfrom
builder
Jul 15, 2026
Merged

Replace string replace workaround with extern_path#482
mxpv merged 2 commits into
mainfrom
builder

Conversation

@mxpv

@mxpv mxpv commented Jul 14, 2026

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
@github-actions github-actions Bot added C-client Containerd client C-snapshots Remote snapshotter labels Jul 14, 2026
@mxpv mxpv requested a review from a team July 14, 2026 17:25
@jokemanfire jokemanfire requested a review from Copilot July 15, 2026 01:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the protobuf/tonic code generation build scripts to avoid post-processing generated Rust code, using tonic_prost_build::Builder::extern_path instead to correctly reference shared proto packages.

Changes:

  • Replaces the generated-code string-rewrite “fixup” step with extern_path(...) mappings for containerd and google RPC proto packages.
  • Splits client proto generation into separate “types” and “services” compilation phases, ensuring services reference the already-generated type modules.
  • Replaces the previous doc-comment rewrite workaround with disable_comments(...) for specific problematic filters field comments.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/snapshots/build.rs Uses extern_path for .containerd.types and disables a problematic doc comment, removing generated-code rewriting.
crates/client/build.rs Splits type vs service proto generation and uses extern_path mappings (types/v1/transfer/google.rpc), removing generated-code rewriting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/client/build.rs
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
@mxpv mxpv requested a review from jokemanfire July 15, 2026 01:52
@mxpv mxpv added this pull request to the merge queue Jul 15, 2026
Merged via the queue into main with commit 1981574 Jul 15, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-client Containerd client C-snapshots Remote snapshotter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants