Skip to content

Commit 8c9c41c

Browse files
committed
chore: use relative path in tar command, but set cwd to repo root (windows)
1 parent 59e4ae2 commit 8c9c41c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/scripts/libmongocrypt.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ export async function downloadLibMongoCrypt(nodeDepsRoot, { ref }) {
171171

172172
console.error(`Platform: ${detectedPlatform} Prebuild: ${prebuild}`);
173173

174-
const unzipArgs = ['-xzv', '-C', destination, `${prebuild}/nocrypto`];
174+
const unzipArgs = ['-xzv', '-C', `_libmongocrypt-${ref}`, `${prebuild}/nocrypto`];
175175
console.error(`+ tar ${unzipArgs.join(' ')}`);
176-
const unzip = child_process.spawn('tar', unzipArgs, { stdio: ['pipe', 'inherit'] });
176+
const unzip = child_process.spawn('tar', unzipArgs, { stdio: ['pipe', 'inherit'], cwd: resolveRoot('.') });
177177

178178
const [response] = await events.once(https.get(downloadURL), 'response');
179179

0 commit comments

Comments
 (0)