Skip to content

fix: read CARGO_MANIFEST_DIR at runtime#93

Closed
titanous wants to merge 1 commit intoinfluxdata:mainfrom
titanous:types-build-env
Closed

fix: read CARGO_MANIFEST_DIR at runtime#93
titanous wants to merge 1 commit intoinfluxdata:mainfrom
titanous:types-build-env

Conversation

@titanous
Copy link
Copy Markdown

Bazel uses a sandbox to build crates, and the absolute path used can differ between building the build.rs and running it.

Instead of compiling in the value of CARGO_MANIFEST_DIR, read it at runtime to get the correct directory.

Refs: bazelbuild/rules_rust#878

Bazel uses a sandbox to build crates, and the absolute path used can
differ between building the build.rs and running it.

Instead of compiling in the value of CARGO_MANIFEST_DIR, read it at
runtime to get the correct directory.

Refs: bazelbuild/rules_rust#878
@titanous
Copy link
Copy Markdown
Author

Dupe of #90

@titanous titanous closed this Feb 11, 2023
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