Skip to content

Commit 331ce1d

Browse files
authored
Merge pull request actions#141 from paulcacheux/fix-windows-extractor-selection
Fix extractor selection on windows
2 parents 1087a81 + bba6fe1 commit 331ce1d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5084,9 +5084,9 @@ function installGoVersion(info, auth) {
50845084
}
50855085
function extractGoArchive(archivePath) {
50865086
return __awaiter(this, void 0, void 0, function* () {
5087-
const arch = os_1.default.arch();
5087+
const platform = os_1.default.platform();
50885088
let extPath;
5089-
if (arch === 'win32') {
5089+
if (platform === 'win32') {
50905090
extPath = yield tc.extractZip(archivePath);
50915091
}
50925092
else {

src/installer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ async function installGoVersion(
122122
}
123123

124124
export async function extractGoArchive(archivePath: string): Promise<string> {
125-
const arch = os.arch();
125+
const platform = os.platform();
126126
let extPath: string;
127127

128-
if (arch === 'win32') {
128+
if (platform === 'win32') {
129129
extPath = await tc.extractZip(archivePath);
130130
} else {
131131
extPath = await tc.extractTar(archivePath);

0 commit comments

Comments
 (0)