Skip to content

Commit ed4a842

Browse files
IanButterworthDilumAluthgeViralBShah
authored
Use Windows system tar (not the Git Bash tar) (#206)
* use windows tar, not git bash one * correct manual patch * rebuild * Update src/installer.ts Co-authored-by: Dilum Aluthge <[email protected]> * Update installer.js * Include the direct URL of the issue (not just the issue number) * npm run build --------- Co-authored-by: Dilum Aluthge <[email protected]> Co-authored-by: Viral B. Shah <[email protected]>
1 parent 63a26ec commit ed4a842

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/installer.js

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/installer.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ export async function installJulia(dest: string, versionInfo, version: string, a
263263
}
264264
} else {
265265
// This is the more common path. Using .tar.gz is much faster
266-
await exec.exec('powershell', ['-Command', `tar xf ${juliaDownloadPath} --strip-components=1 -C ${dest}`])
266+
// don't use the Git bash provided tar. Issue #205
267+
// https://github.com/julia-actions/setup-julia/issues/205
268+
await exec.exec('powershell', ['-Command', `& "$env:WINDIR/System32/tar" xf ${juliaDownloadPath} --strip-components=1 -C ${dest}`])
267269
}
268270
return dest
269271
case 'darwin':

0 commit comments

Comments
 (0)