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:
@ -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);
|
||||
|
Reference in New Issue
Block a user