13
0
Fork 0
mirror of https://github.com/jdx/mise-action.git synced 2026-07-03 01:59:29 +00:00

fix: suppress exit rejections after killing tar download

When a piped curl/wget-to-tar download fails, ignore close-handler
rejections from the killed child processes so the original error
surfaces cleanly.
This commit is contained in:
Taku Kodma 2026-06-17 22:03:57 +10:00
parent 102cca5db7
commit 4b978f5b3b
No known key found for this signature in database
GPG key ID: 2FA149ECEAB1E16D
3 changed files with 5 additions and 1 deletions

2
dist/index.js generated vendored
View file

@ -89652,6 +89652,8 @@ async function installFromTarUrl(url, tarArgs, miseBinPath) {
catch (err) {
downloader.kill();
tar.kill();
downloadExit.catch(() => { });
tarExit.catch(() => { });
throw err;
}
const extractedMisePath = path$1.join(tmpdir, 'mise', 'bin', 'mise');

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -528,6 +528,8 @@ async function installFromTarUrl(
} catch (err) {
downloader.kill()
tar.kill()
downloadExit.catch(() => {})
tarExit.catch(() => {})
throw err
}