fix(dapi-grpc): files generated outside sandbox#3056
fix(dapi-grpc): files generated outside sandbox#3056
Conversation
📝 WalkthroughWalkthroughBuild resolves an output base dir at build time (DAPI_GRPC_OUT_DIR fallback) and passes it into gRPC code generation; generated output paths and compile-time includes are relocated under that output base. A small loop change was made in strategy-tests addressing output indexing. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@packages/dapi-grpc/build.rs`:
- Line 39: Change the generate_code signature to accept an &Path instead of
&PathBuf to satisfy clippy::ptr_arg: add use std::path::Path; and update fn
generate_code(typ: ImplType, output_base: &Path) { … } and then update any
callers that currently pass a PathBuf (e.g., variables named output_base) to
pass output_base.as_path() or borrow as a Path; ensure references to the
parameter inside generate_code still work with &Path.
Issue being fixed or feature implemented
Codex in dash-evo-tool fails to build the project due to:
What was done?
Fixed generated code output dir to move it into the sandbox (env var DAPI_GRPC_OUT_DIR or OUT_DIR/dapi_grpc)
How Has This Been Tested?
Let codex build dash-evo-tool using this branch.
Breaking Changes
None
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit
Chores
Tests