Skip to content

Commit

Permalink
Fix extractor selection on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcacheux committed Aug 19, 2021
1 parent 3b4dc6c commit e11891a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/installer.ts
Expand Up @@ -122,10 +122,10 @@ async function installGoVersion(
}

export async function extractGoArchive(archivePath: string): Promise<string> {
const arch = os.arch();
const platform = os.platform();
let extPath: string;

if (arch === 'win32') {
if (platform === 'win32') {
extPath = await tc.extractZip(archivePath);
} else {
extPath = await tc.extractTar(archivePath);
Expand Down

0 comments on commit e11891a

Please sign in to comment.