Skip to content

Commit dcc5ab1

Browse files
committed
Clarify execFileSync vs execFile
execFile is async with callback, but not promisified, whereas execFileSync is synchronous & blocking Change-type: patch
1 parent b43d9ec commit dcc5ab1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/compose.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { execFile as execFileSync } from 'child_process';
1+
import { execFile as execFileCb } from 'child_process';
22
import { promisify } from 'util';
33
import { randomUUID } from 'crypto';
44
import * as path from 'path';
@@ -23,7 +23,7 @@ import type {
2323
ImageDescriptor,
2424
} from './types';
2525

26-
const execFile = promisify(execFileSync);
26+
const execFile = promisify(execFileCb);
2727

2828
/**
2929
* Parse one or more compose files using compose-go, and return a normalized composition object

0 commit comments

Comments
 (0)