mirror of
https://github.com/actions/setup-go.git
synced 2025-06-29 20:53:43 +00:00
Default to os.arch when no arch provided
This commit is contained in:
parent
2f5755bd36
commit
c5cf47b1d5
3 changed files with 23 additions and 23 deletions
|
@ -33,7 +33,7 @@ export async function getGo(
|
|||
versionSpec: string,
|
||||
checkLatest: boolean,
|
||||
auth: string | undefined,
|
||||
arch = sys.getArch()
|
||||
arch = os.arch()
|
||||
) {
|
||||
let osPlat: string = os.platform();
|
||||
|
||||
|
@ -178,7 +178,7 @@ export async function getInfoFromManifest(
|
|||
versionSpec: string,
|
||||
stable: boolean,
|
||||
auth: string | undefined,
|
||||
arch = sys.getArch()
|
||||
arch = os.arch()
|
||||
): Promise<IGoVersionInfo | null> {
|
||||
let info: IGoVersionInfo | null = null;
|
||||
const releases = await tc.getManifestFromRepo(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue