Skip to content

Commit a774bdc

Browse files
committed
Debugging issues spawning child process
1 parent eb2d403 commit a774bdc

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

componentDetection.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,7 @@ export default class ComponentDetection {
3737

3838
// Write the blob to a file
3939
core.debug("Writing binary to file");
40-
await fs.writeFile(this.componentDetectionPath, buffer, {mode: 0o777, flag: 'w'},
41-
(err: any) => {
42-
if (err) {
43-
core.error(err);
44-
}
45-
});
40+
await fs.writeFileSync(this.componentDetectionPath, buffer, {mode: 0o777, flag: 'w'});
4641
} catch (error: any) {
4742
core.error(error);
4843
}

dist/index.js

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)