mirror of
https://github.com/actions/setup-go.git
synced 2025-05-04 14:14:34 +00:00
Fix extractor selection on windows
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -5084,9 +5084,9 @@ function installGoVersion(info, auth) {
|
||||
}
|
||||
function extractGoArchive(archivePath) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const arch = os_1.default.arch();
|
||||
const platform = os_1.default.platform();
|
||||
let extPath;
|
||||
if (arch === 'win32') {
|
||||
if (platform === 'win32') {
|
||||
extPath = yield tc.extractZip(archivePath);
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user