mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-11 00:06:06 +00:00
fix(backend): go lock dependency with no requirements
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user