Skip to content

Commit 47364c1

Browse files
committed
When symlinking /dev/fd stuff, try to use the artifact's ln.exe
There is not any pressing need currently as far as the Action is concerned, but it did help local debugging a bit. So I want to keep it. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 5b3cc51 commit 47364c1

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

main.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,16 @@ async function run(): Promise<void> {
8888
}
8989

9090
const ln = (linkPath: string, target: string): void => {
91-
const child = spawnSync('ln.exe', ['-s', target, linkPath], {
92-
cwd: outputDirectory,
93-
env: {
94-
MSYS: 'winsymlinks:sys'
91+
const child = spawnSync(
92+
flavor === 'minimal' ? 'ln.exe' : 'usr\\bin\\ln.exe',
93+
['-s', target, linkPath],
94+
{
95+
cwd: outputDirectory,
96+
env: {
97+
MSYS: 'winsymlinks:sys'
98+
}
9599
}
96-
})
100+
)
97101
if (child.error) throw child.error
98102
}
99103
for (const [linkPath, target] of Object.entries({

0 commit comments

Comments
 (0)