5
0
mirror of https://github.com/astral-sh/setup-uv.git synced 2025-12-21 11:01:40 +00:00

Wait 50ms before exit to fix libuv bug (#689)

Fixes: #686
This commit is contained in:
Kevin Stillhammer
2025-11-21 09:00:37 +01:00
committed by GitHub
parent d7d33e16d4
commit 1e862dfacb
5 changed files with 28 additions and 18 deletions

2
dist/save-cache/index.js generated vendored
View File

@@ -90839,6 +90839,8 @@ async function run() {
else {
core.info("save-cache is false. Skipping save cache step.");
}
// https://github.com/nodejs/node/issues/56645#issuecomment-3077594952
await new Promise((resolve) => setTimeout(resolve, 50));
// node will stay alive if any promises are not resolved,
// which is a possibility if HTTP requests are dangling
// due to retries or timeouts. We know that if we got here