Skip to content

Commit ab0844f

Browse files
authored
add support for arm64 (#20783)
1 parent 0d0fa76 commit ab0844f

File tree

10 files changed

+50
-25
lines changed

10 files changed

+50
-25
lines changed

Tasks/GoToolV0/gotool.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,14 @@ async function acquireGo(version: string): Promise<string> {
8787

8888
function getFileName(version: string): string {
8989
let platform: string = osPlat == "win32" ? "windows" : osPlat;
90-
let arch: string = osArch == "x64" ? "amd64" : "386";
90+
let arch: string;
91+
if (osArch == "x64") {
92+
arch = "amd64";
93+
} else if (osArch == "arm64") {
94+
arch = "arm64";
95+
} else {
96+
arch = "386";
97+
}
9198
let ext: string = osPlat == "win32" ? "zip" : "tar.gz";
9299
let filename: string = util.format("go%s.%s-%s.%s", version, platform, arch, ext);
93100
return filename;

Tasks/GoToolV0/task.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"author": "Microsoft Corporation",
1414
"version": {
1515
"Major": 0,
16-
"Minor": 246,
17-
"Patch": 2
16+
"Minor": 251,
17+
"Patch": 0
1818
},
1919
"satisfies": [
2020
"GO"

Tasks/GoToolV0/task.loc.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"author": "Microsoft Corporation",
1414
"version": {
1515
"Major": 0,
16-
"Minor": 246,
17-
"Patch": 2
16+
"Minor": 251,
17+
"Patch": 0
1818
},
1919
"satisfies": [
2020
"GO"

_generated/GoToolV0.versionmap.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Default|0.246.2
2-
Node20_229_3|0.246.3
1+
Default|0.251.0
2+
Node20_229_3|0.251.1

_generated/GoToolV0/gotool.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,14 @@ async function acquireGo(version: string): Promise<string> {
8787

8888
function getFileName(version: string): string {
8989
let platform: string = osPlat == "win32" ? "windows" : osPlat;
90-
let arch: string = osArch == "x64" ? "amd64" : "386";
90+
let arch: string;
91+
if (osArch == "x64") {
92+
arch = "amd64";
93+
} else if (osArch == "arm64") {
94+
arch = "arm64";
95+
} else {
96+
arch = "386";
97+
}
9198
let ext: string = osPlat == "win32" ? "zip" : "tar.gz";
9299
let filename: string = util.format("go%s.%s-%s.%s", version, platform, arch, ext);
93100
return filename;

_generated/GoToolV0/task.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"author": "Microsoft Corporation",
1414
"version": {
1515
"Major": 0,
16-
"Minor": 246,
17-
"Patch": 2
16+
"Minor": 251,
17+
"Patch": 0
1818
},
1919
"satisfies": [
2020
"GO"
@@ -67,7 +67,8 @@
6767
"TempDirNotSet": "The 'Agent.TempDirectory' environment variable was expected to be set."
6868
},
6969
"_buildConfigMapping": {
70-
"Default": "0.246.2",
71-
"Node20_229_3": "0.246.3"
70+
"Default": "0.251.0",
71+
"LocalPackages": "0.249.4",
72+
"Node20_229_3": "0.251.1"
7273
}
7374
}

_generated/GoToolV0/task.loc.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"author": "Microsoft Corporation",
1414
"version": {
1515
"Major": 0,
16-
"Minor": 246,
17-
"Patch": 2
16+
"Minor": 251,
17+
"Patch": 0
1818
},
1919
"satisfies": [
2020
"GO"
@@ -67,7 +67,8 @@
6767
"TempDirNotSet": "ms-resource:loc.messages.TempDirNotSet"
6868
},
6969
"_buildConfigMapping": {
70-
"Default": "0.246.2",
71-
"Node20_229_3": "0.246.3"
70+
"Default": "0.251.0",
71+
"LocalPackages": "0.249.4",
72+
"Node20_229_3": "0.251.1"
7273
}
7374
}

_generated/GoToolV0_Node20/gotool.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,14 @@ async function acquireGo(version: string): Promise<string> {
8787

8888
function getFileName(version: string): string {
8989
let platform: string = osPlat == "win32" ? "windows" : osPlat;
90-
let arch: string = osArch == "x64" ? "amd64" : "386";
90+
let arch: string;
91+
if (osArch == "x64") {
92+
arch = "amd64";
93+
} else if (osArch == "arm64") {
94+
arch = "arm64";
95+
} else {
96+
arch = "386";
97+
}
9198
let ext: string = osPlat == "win32" ? "zip" : "tar.gz";
9299
let filename: string = util.format("go%s.%s-%s.%s", version, platform, arch, ext);
93100
return filename;

_generated/GoToolV0_Node20/task.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"author": "Microsoft Corporation",
1414
"version": {
1515
"Major": 0,
16-
"Minor": 246,
17-
"Patch": 3
16+
"Minor": 251,
17+
"Patch": 1
1818
},
1919
"satisfies": [
2020
"GO"
@@ -71,7 +71,8 @@
7171
"TempDirNotSet": "The 'Agent.TempDirectory' environment variable was expected to be set."
7272
},
7373
"_buildConfigMapping": {
74-
"Default": "0.246.2",
75-
"Node20_229_3": "0.246.3"
74+
"Default": "0.251.0",
75+
"LocalPackages": "0.249.4",
76+
"Node20_229_3": "0.251.1"
7677
}
7778
}

_generated/GoToolV0_Node20/task.loc.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"author": "Microsoft Corporation",
1414
"version": {
1515
"Major": 0,
16-
"Minor": 246,
17-
"Patch": 3
16+
"Minor": 251,
17+
"Patch": 1
1818
},
1919
"satisfies": [
2020
"GO"
@@ -71,7 +71,8 @@
7171
"TempDirNotSet": "ms-resource:loc.messages.TempDirNotSet"
7272
},
7373
"_buildConfigMapping": {
74-
"Default": "0.246.2",
75-
"Node20_229_3": "0.246.3"
74+
"Default": "0.251.0",
75+
"LocalPackages": "0.249.4",
76+
"Node20_229_3": "0.251.1"
7677
}
7778
}

0 commit comments

Comments
 (0)