Debugging issues spawning child process
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
+1
-5
@@ -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);
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user