Skip to content

Point CARGO_MANIFEST_DIR to transformed sources dir#4154

Open
sin-ack wants to merge 1 commit into
bazelbuild:mainfrom
sin-ack:fix/generated-cargo-manifest-dir
Open

Point CARGO_MANIFEST_DIR to transformed sources dir#4154
sin-ack wants to merge 1 commit into
bazelbuild:mainfrom
sin-ack:fix/generated-cargo-manifest-dir

Conversation

@sin-ack

@sin-ack sin-ack commented Jul 16, 2026

Copy link
Copy Markdown

Crates with generated inputs have their source files and compile data staged under bazel-out so rustc can resolve modules from one root. The compile action still points CARGO_MANIFEST_DIR at the source package, which is absent from the sandbox and breaks proc macros that read files relative to the manifest.

Assisted-by: GPT-5.6 Sol

Crates with generated inputs have their source files and compile data
staged under bazel-out so rustc can resolve modules from one root. The
compile action still points `CARGO_MANIFEST_DIR` at the source package,
which is absent from the sandbox and breaks proc macros that read files
relative to the manifest.

Assisted-by: GPT-5.6 Sol
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