mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-12 02:56:54 +08:00
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:
@@ -263,7 +263,9 @@ export async function installJulia(dest: string, versionInfo, version: string, a
|
||||
}
|
||||
} else {
|
||||
// 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
|
||||
case 'darwin':
|
||||
|
||||
Reference in New Issue
Block a user