From 6ba360481aa9b072df441cede3f45b1231f5cd3a Mon Sep 17 00:00:00 2001 From: John Guibas Date: Mon, 29 Apr 2024 20:01:48 -0700 Subject: [PATCH] feat: canonicalize build dir paths (#637) --- recursion/gnark-ffi/src/groth16.rs | 3 ++- recursion/gnark/main.go | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recursion/gnark-ffi/src/groth16.rs b/recursion/gnark-ffi/src/groth16.rs index 4b56a50e26..849abb8391 100644 --- a/recursion/gnark-ffi/src/groth16.rs +++ b/recursion/gnark-ffi/src/groth16.rs @@ -49,6 +49,7 @@ impl Groth16Prover { let version = env::var("WRAPPER_VERSION").unwrap_or_else(|_| "3".to_string()); let port = env::var("HOST_PORT").unwrap_or_else(|_| generate_random_port().to_string()); let port_clone = port.clone(); + let cwd = std::env::current_dir().unwrap(); // Create a channel for cancellation let (cancel_sender, cancel_receiver) = bounded(1); @@ -61,7 +62,7 @@ impl Groth16Prover { "main.go", "serve", "--data", - build_dir.to_str().unwrap(), + cwd.join(build_dir).to_str().unwrap(), "--type", "groth16", "--version", diff --git a/recursion/gnark/main.go b/recursion/gnark/main.go index 6076828c73..96bff76252 100644 --- a/recursion/gnark/main.go +++ b/recursion/gnark/main.go @@ -408,7 +408,6 @@ func main() { fmt.Println("Error: host port flag is required") os.Exit(1) } - s, err := server.New(context.Background(), circuitDataDir, circuitBucket, circuitType, circuitVersion) if err != nil { panic(fmt.Errorf("initializing server: %w", err))