Open
Description
Component
Other (please describe), sp1-sdk
Describe the feature you would like
Currently building any project referencing sp1-recursion-core
with a value of CARGO_TARGET_DIR
not ending in target
will fail.
E.g. the following fails:
cargo init
cargo add sp1-recursion-core
CARGO_TARGET_DIR=/tmp/test cargo build
The panic occurs here.
Additional context
error: failed to run custom build command for `sp1-recursion-core v5.0.5`
Caused by:
process didn't exit successfully: `/tmp/test/debug/build/sp1-recursion-core-b0fe302f15c06e9f/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at /home/thomas/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sp1-recursion-core-5.0.5/build.rs:52:21:
OUT_DIR does not have parent called "target": "/tmp/test/debug/build/sp1-recursion-core-a8dc4a17f5d960ce/out"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Metadata
Metadata
Assignees
Labels
No labels