Skip to content

Commit

Permalink
fix(backend): go lock dependency with no requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Oct 7, 2022
1 parent e424b6b commit 22c4a3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1452,8 +1452,9 @@ async fn install_go_dependencies(

req_content.push_str(&format!("\n{GO_REQ_SPLITTER}\n"));

let mut file = File::open(format!("{job_dir}/go.sum")).await?;
file.read_to_string(&mut req_content).await?;
if let Ok(mut file) = File::open(format!("{job_dir}/go.sum")).await {
file.read_to_string(&mut req_content).await?;
}

Ok(req_content)
}
Expand Down

0 comments on commit 22c4a3b

Please sign in to comment.