fix(backend): go lock dependency with no requirements

This commit is contained in:
Ruben Fiszel
2022-10-07 16:11:45 +02:00
parent e424b6b9b9
commit 22c4a3b375
+3 -2
View File
@@ -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)
}