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 <dilum@aluthge.com>

* Update installer.js

* Include the direct URL of the issue (not just the issue number)

* npm run build

---------

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
Co-authored-by: Viral B. Shah <ViralBShah@users.noreply.github.com>
This commit is contained in:
Ian Butterworth
2024-06-19 16:58:30 -04:00
committed by GitHub
parent 63a26ece8c
commit ed4a842dbe
2 changed files with 6 additions and 2 deletions

4
lib/installer.js generated
View File

@@ -291,7 +291,9 @@ function installJulia(dest, versionInfo, version, arch) {
} }
else { else {
// This is the more common path. Using .tar.gz is much faster // This is the more common path. Using .tar.gz is much faster
yield exec.exec('powershell', ['-Command', `tar xf ${juliaDownloadPath} --strip-components=1 -C ${dest}`]); // don't use the Git bash provided tar. Issue #205
// https://github.com/julia-actions/setup-julia/issues/205
yield exec.exec('powershell', ['-Command', `& "$env:WINDIR/System32/tar" xf ${juliaDownloadPath} --strip-components=1 -C ${dest}`]);
} }
return dest; return dest;
case 'darwin': case 'darwin':

View File

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