pull/531/head
Frostebite 2024-01-31 00:17:58 +00:00
parent 620a7307e0
commit bb0b3bd35c
4 changed files with 5 additions and 5 deletions

4
dist/index.js generated vendored
View File

@ -4344,7 +4344,7 @@ class Caching {
process.chdir(`${startPath}`); process.chdir(`${startPath}`);
return; return;
} }
await cloud_runner_system_1.CloudRunnerSystem.Run(`tar -cf ${cacheArtifactName}.tar${compressionSuffix} ${node_path_1.default.basename(sourceFolder)}`); await cloud_runner_system_1.CloudRunnerSystem.Run(`tar -cf ${cacheArtifactName}.tar${compressionSuffix} "${node_path_1.default.basename(sourceFolder)}"`);
await cloud_runner_system_1.CloudRunnerSystem.Run(`du ${cacheArtifactName}.tar${compressionSuffix}`); await cloud_runner_system_1.CloudRunnerSystem.Run(`du ${cacheArtifactName}.tar${compressionSuffix}`);
(0, node_console_1.assert)(await fileExists(`${cacheArtifactName}.tar${compressionSuffix}`), 'cache archive exists'); (0, node_console_1.assert)(await fileExists(`${cacheArtifactName}.tar${compressionSuffix}`), 'cache archive exists');
(0, node_console_1.assert)(await fileExists(node_path_1.default.basename(sourceFolder)), 'source folder exists'); (0, node_console_1.assert)(await fileExists(node_path_1.default.basename(sourceFolder)), 'source folder exists');
@ -4848,7 +4848,7 @@ class CloudRunnerSystem {
} }
return await new Promise((promise, throwError) => { return await new Promise((promise, throwError) => {
let output = ''; let output = '';
const child = (0, child_process_1.exec)(command, (error, stdout, stderr) => { const child = (0, child_process_1.exec)(command, { maxBuffer: 1024 * 10000 }, (error, stdout, stderr) => {
if (!suppressError && error) { if (!suppressError && error) {
remote_client_logger_1.RemoteClientLogger.log(error.toString()); remote_client_logger_1.RemoteClientLogger.log(error.toString());
throwError(error); throwError(error);

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -80,7 +80,7 @@ export class Caching {
} }
await CloudRunnerSystem.Run( await CloudRunnerSystem.Run(
`tar -cf ${cacheArtifactName}.tar${compressionSuffix} ${path.basename(sourceFolder)}`, `tar -cf ${cacheArtifactName}.tar${compressionSuffix} "${path.basename(sourceFolder)}"`,
); );
await CloudRunnerSystem.Run(`du ${cacheArtifactName}.tar${compressionSuffix}`); await CloudRunnerSystem.Run(`du ${cacheArtifactName}.tar${compressionSuffix}`);
assert(await fileExists(`${cacheArtifactName}.tar${compressionSuffix}`), 'cache archive exists'); assert(await fileExists(`${cacheArtifactName}.tar${compressionSuffix}`), 'cache archive exists');

View File

@ -31,7 +31,7 @@ export class CloudRunnerSystem {
return await new Promise<string>((promise, throwError) => { return await new Promise<string>((promise, throwError) => {
let output = ''; let output = '';
const child = exec(command, (error, stdout, stderr) => { const child = exec(command, { maxBuffer: 1024 * 10000 }, (error, stdout, stderr) => {
if (!suppressError && error) { if (!suppressError && error) {
RemoteClientLogger.log(error.toString()); RemoteClientLogger.log(error.toString());
throwError(error); throwError(error);