Skip to content

Commit

Permalink
feat: canonicalize build dir paths (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtguibas authored Apr 30, 2024
1 parent 70159ca commit 6ba3604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion recursion/gnark-ffi/src/groth16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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",
Expand Down
1 change: 0 additions & 1 deletion recursion/gnark/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 6ba3604

Please sign in to comment.