Debugging issues spawning child process

This commit is contained in:
Justin Hutchings
2023-01-22 07:39:02 +00:00
parent eb2d403b7f
commit a774bdcc92
3 changed files with 3 additions and 12 deletions
+1 -6
View File
@@ -37,12 +37,7 @@ export default class ComponentDetection {
// Write the blob to a file
core.debug("Writing binary to file");
await fs.writeFile(this.componentDetectionPath, buffer, {mode: 0o777, flag: 'w'},
(err: any) => {
if (err) {
core.error(err);
}
});
await fs.writeFileSync(this.componentDetectionPath, buffer, {mode: 0o777, flag: 'w'});
} catch (error: any) {
core.error(error);
}
Generated Vendored
+1 -5
View File
@@ -23760,11 +23760,7 @@ class ComponentDetection {
const buffer = Buffer.from(arrayBuffer);
// Write the blob to a file
core.debug("Writing binary to file");
yield fs_1.default.writeFile(this.componentDetectionPath, buffer, { mode: 0o777, flag: 'w' }, (err) => {
if (err) {
core.error(err);
}
});
yield fs_1.default.writeFileSync(this.componentDetectionPath, buffer, { mode: 0o777, flag: 'w' });
}
catch (error) {
core.error(error);
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long