@molecule/api-code-sandbox-flyio 1.0.7 → 1.0.8
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/provider.d.ts.map +1 -1
- package/dist/provider.js +7 -1
- package/package.json +1 -1
package/dist/provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAUV,eAAe,EAEhB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAgC,MAAM,UAAU,CAAA;AAsBrE,OAAO,EAAmD,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAEhG,OAAO,KAAK,EAEV,WAAW,EAUZ,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAUV,eAAe,EAEhB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAgC,MAAM,UAAU,CAAA;AAsBrE,OAAO,EAAmD,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAEhG,OAAO,KAAK,EAEV,WAAW,EAUZ,MAAM,YAAY,CAAA;AA6yDnB;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,MAAM,CAAC,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,YAAY,EACrB,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,GACzB,eAAe,CAEjB"}
|
package/dist/provider.js
CHANGED
|
@@ -1490,7 +1490,13 @@ class FlyioSandboxProvider {
|
|
|
1490
1490
|
for await (const chunk of archive)
|
|
1491
1491
|
parts.push(Buffer.from(chunk));
|
|
1492
1492
|
const base64 = gzipSync(Buffer.concat(parts)).toString('base64');
|
|
1493
|
-
|
|
1493
|
+
// The temp tar lives on the WORKSPACE VOLUME, not /tmp. The chunked
|
|
1494
|
+
// write and the extract are separate exec calls, and a Machine with
|
|
1495
|
+
// autostop=suspend can cold-start between them — which recreates the
|
|
1496
|
+
// rootfs from the image (wiping /tmp) while the ext4 volume at
|
|
1497
|
+
// /workspace persists. A /tmp temp file vanished mid-import; the volume
|
|
1498
|
+
// one survives.
|
|
1499
|
+
const tmp = `${WORKSPACE_PATH}/.mol-import-${machineId}.tgz`;
|
|
1494
1500
|
const quotedTmp = shellQuote(tmp);
|
|
1495
1501
|
const quotedPath = shellQuote(path);
|
|
1496
1502
|
const failIfError = (result, step) => {
|