From eedcf2fb1c22f010a0eb66b92f378c110977f266 Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Sat, 14 Nov 2026 13:47:21 +0000 Subject: [PATCH] build: rebuild dist/ for the macOS purge fix (#405) #403 changed src/save.ts without regenerating dist/, so the action still runs the old @actions/exec call and check-dist fails on master. --- dist/{cache-DoD2J4WY.js => cache-BqdT1UO_.js} | 2 +- dist/{cache-BaeW9gVW.js => cache-DOeVf6hi.js} | 2 +- dist/{cleanup-DYJDrBaf.js => cleanup-ChjhZSHu.js} | 6 +++--- dist/restore.js | 2 +- dist/save.js | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) rename dist/{cache-DoD2J4WY.js => cache-BqdT1UO_.js} (99%) rename dist/{cache-BaeW9gVW.js => cache-DOeVf6hi.js} (99%) rename dist/{cleanup-DYJDrBaf.js => cleanup-ChjhZSHu.js} (99%) diff --git a/dist/cache-DoD2J4WY.js b/dist/cache-BqdT1UO_.js similarity index 99% rename from dist/cache-DoD2J4WY.js rename to dist/cache-BqdT1UO_.js index d2f1532..fa24482 100644 --- a/dist/cache-DoD2J4WY.js +++ b/dist/cache-BqdT1UO_.js @@ -1,4 +1,4 @@ -import { f as debug, m as mkdirP, n as create, l as exec, w as which, o as warning, i as info, H as HttpCodes, p as HttpClientError, q as HttpClient, t as isDebug, u as setSecret, B as BearerCredentialHandler, v as rmRF, e as error } from './cleanup-DYJDrBaf.js'; +import { f as debug, m as mkdirP, l as create, n as exec, w as which, o as warning, i as info, H as HttpCodes, p as HttpClientError, q as HttpClient, t as isDebug, u as setSecret, B as BearerCredentialHandler, v as rmRF, e as error } from './cleanup-ChjhZSHu.js'; import * as path from 'path'; import * as crypto from 'crypto'; import * as fs from 'fs'; diff --git a/dist/cache-BaeW9gVW.js b/dist/cache-DOeVf6hi.js similarity index 99% rename from dist/cache-BaeW9gVW.js rename to dist/cache-DOeVf6hi.js index 98c32e1..3cbdd68 100644 --- a/dist/cache-BaeW9gVW.js +++ b/dist/cache-DOeVf6hi.js @@ -1,4 +1,4 @@ -import { x as commonjsGlobal, y as requireTunnel, z as getDefaultExportFromCjs, A as getAugmentedNamespace } from './cleanup-DYJDrBaf.js'; +import { x as commonjsGlobal, y as requireTunnel, z as getDefaultExportFromCjs, A as getAugmentedNamespace } from './cleanup-ChjhZSHu.js'; import os__default from 'os'; import crypto__default from 'crypto'; import fs__default from 'fs'; diff --git a/dist/cleanup-DYJDrBaf.js b/dist/cleanup-ChjhZSHu.js similarity index 99% rename from dist/cleanup-DYJDrBaf.js rename to dist/cleanup-ChjhZSHu.js index 486168f..1c1fa99 100644 --- a/dist/cleanup-DYJDrBaf.js +++ b/dist/cleanup-ChjhZSHu.js @@ -34972,10 +34972,10 @@ async function getCacheProvider() { let cache; switch (cacheProvider) { case "github": - cache = await import('./cache-DoD2J4WY.js'); + cache = await import('./cache-BqdT1UO_.js'); break; case "warpbuild": - cache = await import('./cache-BaeW9gVW.js').then(function (n) { return n.c; }); + cache = await import('./cache-DOeVf6hi.js').then(function (n) { return n.c; }); break; default: throw new Error(`The \`cache-provider\` \`${cacheProvider}\` is not valid.`); @@ -35714,4 +35714,4 @@ async function rmRF(dirName) { await rmRF$1(dirName); } -export { getAugmentedNamespace as A, BearerCredentialHandler as B, CacheConfig as C, HttpCodes as H, getInput as a, exportVariable as b, cleanTargetDir as c, isCacheUpToDate as d, error as e, debug as f, getCacheProvider as g, cleanRegistry as h, info as i, cleanBin as j, cleanGit as k, exec as l, mkdirP as m, create as n, warning as o, HttpClientError as p, HttpClient as q, reportError as r, setOutput as s, isDebug as t, setSecret as u, rmRF$1 as v, which as w, commonjsGlobal as x, requireTunnel as y, getDefaultExportFromCjs as z }; +export { getAugmentedNamespace as A, BearerCredentialHandler as B, CacheConfig as C, HttpCodes as H, getInput as a, exportVariable as b, cleanTargetDir as c, isCacheUpToDate as d, error as e, debug as f, getCacheProvider as g, cleanRegistry as h, info as i, cleanBin as j, cleanGit as k, create as l, mkdirP as m, exec as n, warning as o, HttpClientError as p, HttpClient as q, reportError as r, setOutput as s, isDebug as t, setSecret as u, rmRF$1 as v, which as w, commonjsGlobal as x, requireTunnel as y, getDefaultExportFromCjs as z }; diff --git a/dist/restore.js b/dist/restore.js index 5a77ed8..2b2f85b 100644 --- a/dist/restore.js +++ b/dist/restore.js @@ -1,4 +1,4 @@ -import { e as error, g as getCacheProvider, a as getInput, b as exportVariable, C as CacheConfig, i as info, c as cleanTargetDir, r as reportError, s as setOutput } from './cleanup-DYJDrBaf.js'; +import { e as error, g as getCacheProvider, a as getInput, b as exportVariable, C as CacheConfig, i as info, c as cleanTargetDir, r as reportError, s as setOutput } from './cleanup-ChjhZSHu.js'; import 'os'; import 'crypto'; import 'fs'; diff --git a/dist/save.js b/dist/save.js index fcebd7d..70bdcc0 100644 --- a/dist/save.js +++ b/dist/save.js @@ -1,4 +1,6 @@ -import { e as error, g as getCacheProvider, a as getInput, d as isCacheUpToDate, i as info, C as CacheConfig, c as cleanTargetDir, f as debug, h as cleanRegistry, j as cleanBin, k as cleanGit, r as reportError, l as exec } from './cleanup-DYJDrBaf.js'; +import { e as error, g as getCacheProvider, a as getInput, d as isCacheUpToDate, i as info, C as CacheConfig, c as cleanTargetDir, f as debug, h as cleanRegistry, j as cleanBin, k as cleanGit, r as reportError } from './cleanup-ChjhZSHu.js'; +import { execFile } from 'child_process'; +import { promisify } from 'util'; import 'os'; import 'crypto'; import 'fs'; @@ -9,7 +11,6 @@ import 'net'; import 'tls'; import 'events'; import 'assert'; -import 'util'; import 'node:assert'; import 'node:net'; import 'node:http'; @@ -29,7 +30,6 @@ import 'node:async_hooks'; import 'node:console'; import 'node:dns'; import 'string_decoder'; -import 'child_process'; import 'timers'; import 'stream'; import 'fs/promises'; @@ -115,7 +115,7 @@ async function macOsWorkaround() { try { // Workaround for https://github.com/actions/cache/issues/403 // Also see https://github.com/rust-lang/cargo/issues/8603 - await exec("sudo", ["/usr/sbin/purge"], { silent: true }); + await promisify(execFile)("sudo", ["/usr/sbin/purge"]); } catch { } }