-
Notifications
You must be signed in to change notification settings - Fork 45
fix(dapi): files generated outside sandbox #3056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
|
Test failure is unrelated, to be fixed in separate PR. |
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