5
0
mirror of https://github.com/astral-sh/setup-uv.git synced 2025-12-15 11:07:14 +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

2
dist/setup/index.js generated vendored
View File

@@ -96091,6 +96091,8 @@ async function run() {
if (inputs_1.enableCache) {
await (0, restore_cache_1.restoreCache)();
}
// https://github.com/nodejs/node/issues/56645#issuecomment-3077594952
await new Promise((resolve) => setTimeout(resolve, 50));
process.exit(0);
}
catch (err) {