@tablation/crew 0.127.6 → 0.127.7
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/cli.js +9 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -11563,10 +11563,7 @@ var SandboxRunner = class {
|
|
|
11563
11563
|
}
|
|
11564
11564
|
}
|
|
11565
11565
|
};
|
|
11566
|
-
|
|
11567
|
-
const err3 = e;
|
|
11568
|
-
return (err3.stderr?.trim() || err3.message || String(e)).split("\n").slice(-3).join(" / ");
|
|
11569
|
-
}
|
|
11566
|
+
var describeExecError = describe;
|
|
11570
11567
|
function gitOrigin(cwd) {
|
|
11571
11568
|
try {
|
|
11572
11569
|
return execFileSync6("git", ["-C", cwd, "remote", "get-url", "origin"], { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim();
|
|
@@ -12821,6 +12818,10 @@ function cloneScript(o) {
|
|
|
12821
12818
|
const mirror = `${o.mirrorDir}/${mirrorRelPath(o.repo)}`;
|
|
12822
12819
|
const depsRoot = `${o.mirrorDir}/${depsRelDir(o.repo)}`;
|
|
12823
12820
|
return [
|
|
12821
|
+
// The mirror is written by the helper container as root and mounted read-only,
|
|
12822
|
+
// so git sees it as owned by someone else and refuses it. Global (not `-c`) so
|
|
12823
|
+
// it holds for every later git call in the run that reads through the alternates.
|
|
12824
|
+
`git config --global --add safe.directory '*'`,
|
|
12824
12825
|
`git clone --quiet --shared ${q(mirror)} ${q(o.workDir)}`,
|
|
12825
12826
|
`cd ${q(o.workDir)}`,
|
|
12826
12827
|
`git remote set-url origin ${q(o.origin)}`,
|
|
@@ -13055,7 +13056,10 @@ var SandboxCache = class {
|
|
|
13055
13056
|
};
|
|
13056
13057
|
function describe(e) {
|
|
13057
13058
|
const err3 = e;
|
|
13058
|
-
|
|
13059
|
+
const lines2 = (err3.stderr?.trim() || err3.message || String(e)).split("\n");
|
|
13060
|
+
const tail3 = lines2.slice(-3);
|
|
13061
|
+
const first = lines2.find((l) => /^(fatal|error):/.test(l.trim()));
|
|
13062
|
+
return (first && !tail3.includes(first) ? [first, ...tail3] : tail3).join(" / ");
|
|
13059
13063
|
}
|
|
13060
13064
|
function cacheSettingsOf(cfg) {
|
|
13061
13065
|
if (!cfg?.cacheVolume) return null;
|
package/package.json
CHANGED