fix: fix go and py resolution cache overlap

This commit is contained in:
Ruben Fiszel
2023-07-05 11:50:19 +02:00
committed by GitHub
parent 2479642415
commit c21bef34ff
@@ -95,7 +95,7 @@ pub async fn pip_compile(
} else {
requirements.to_string()
};
let req_hash = format!("go-{}", calculate_hash(&requirements));
let req_hash = format!("py-{}", calculate_hash(&requirements));
if let Some(cached) = sqlx::query_scalar!(
"SELECT lockfile FROM pip_resolution_cache WHERE hash = $1",
req_hash