Skip to content

Commit

Permalink
WEB3-320: Fix docker build (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
capossele committed Jan 27, 2025
1 parent 5445a73 commit 510a23c
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 510a23c

Please sign in to comment.