@getmonoceros/workbench 1.38.8 → 1.38.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js CHANGED
@@ -9005,7 +9005,7 @@ var CLI_VERSION;
9005
9005
  var init_version = __esm({
9006
9006
  "src/version.ts"() {
9007
9007
  "use strict";
9008
- CLI_VERSION = true ? "1.38.8" : "dev";
9008
+ CLI_VERSION = true ? "1.38.10" : "dev";
9009
9009
  }
9010
9010
  });
9011
9011
 
@@ -11373,6 +11373,8 @@ async function runRemove(opts) {
11373
11373
  if (code !== "EACCES" && code !== "EPERM") {
11374
11374
  throw err;
11375
11375
  }
11376
+ const parentDir = path29.dirname(containerPath);
11377
+ const childName = path29.basename(containerPath);
11376
11378
  logger.info(
11377
11379
  `[remove] host-side rm hit ${code} on ${prettyPath(containerPath)}; using a throw-away alpine container to clean root-owned files\u2026`
11378
11380
  );
@@ -11380,20 +11382,18 @@ async function runRemove(opts) {
11380
11382
  "run",
11381
11383
  "--rm",
11382
11384
  "-v",
11383
- `${containerPath}:/target`,
11385
+ `${parentDir}:/parent`,
11384
11386
  "alpine:3.21",
11385
- "find",
11386
- "/target",
11387
- "-mindepth",
11388
- "1",
11389
- "-delete"
11387
+ "rm",
11388
+ "-rf",
11389
+ `/parent/${childName}`
11390
11390
  ]);
11391
11391
  try {
11392
11392
  await fs19.rm(containerPath, { recursive: true, force: true });
11393
11393
  } catch (err2) {
11394
11394
  const code2 = err2.code;
11395
11395
  throw new Error(
11396
- `docker-based cleanup of ${containerPath} did not fully clear it (alpine find exit ${exit}${stderr.trim() ? `: ${stderr.trim()}` : ""}; host rm: ${code2}). Inspect with \`sudo ls -la ${containerPath}\` and clean manually.`
11396
+ `docker-based cleanup of ${containerPath} did not fully clear it (alpine rm exit ${exit}${stderr.trim() ? `: ${stderr.trim()}` : ""}; host rm: ${code2}). Inspect with \`sudo ls -la ${containerPath}\` and clean manually.`
11397
11397
  );
11398
11398
  }
11399
11399
  }