Skip to content

Commit

Permalink
Merge pull request #119 from reviewdog/fix-extractor-selection-on-win…
Browse files Browse the repository at this point in the history
…dows

backport of actions/setup-go#141
  • Loading branch information
shogo82148 committed Aug 29, 2021
2 parents 9c2f080 + 050d3d2 commit 97f1769
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/setup-go/installer.ts
Expand Up @@ -112,10 +112,10 @@ async function installGoVersion(info: IGoVersionInfo, auth: string | undefined):
}

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 97f1769

Please sign in to comment.