Skip to content
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

WEB3-320: Fix docker build #417

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/aggregation/guest/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ use risc0_build::{embed_methods_with_options, DockerOptions, GuestOptions};
use risc0_build_ethereum::generate_solidity_files;

// Paths where the generated Solidity files will be written.
const SOLIDITY_IMAGE_ID_PATH: &str = "../../contracts/src/SetBuilderImageID.sol";
const SOLIDITY_ELF_PATH: &str = "../../contracts/test/SetBuilderElf.sol";
const SOLIDITY_IMAGE_ID_PATH: &str = "../../../contracts/src/SetBuilderImageID.sol";
const SOLIDITY_ELF_PATH: &str = "../../../contracts/test/SetBuilderElf.sol";

fn main() {
// Builds can be made deterministic, and thereby reproducible, by using Docker to build the
Expand All @@ -28,7 +28,7 @@ fn main() {
println!("cargo:rerun-if-changed=build.rs");
let manifest_dir = PathBuf::from(std::env::var_os("CARGO_MANIFEST_DIR").unwrap());
let use_docker = env::var("RISC0_USE_DOCKER").ok().map(|_| DockerOptions {
root_dir: Some(manifest_dir.join("../..")),
root_dir: Some(manifest_dir.join("../../..")),
});

// Generate Rust source files for the methods crate.
Expand Down
Loading