Skip to content

Commit

Permalink
add support for arm64 (#20783)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-gayatrij authored Jan 14, 2025
1 parent 0d0fa76 commit ab0844f
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 25 deletions.
9 changes: 8 additions & 1 deletion Tasks/GoToolV0/gotool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,14 @@ async function acquireGo(version: string): Promise<string> {

function getFileName(version: string): string {
let platform: string = osPlat == "win32" ? "windows" : osPlat;
let arch: string = osArch == "x64" ? "amd64" : "386";
let arch: string;
if (osArch == "x64") {
arch = "amd64";
} else if (osArch == "arm64") {
arch = "arm64";
} else {
arch = "386";
}
let ext: string = osPlat == "win32" ? "zip" : "tar.gz";
let filename: string = util.format("go%s.%s-%s.%s", version, platform, arch, ext);
return filename;
Expand Down
4 changes: 2 additions & 2 deletions Tasks/GoToolV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 246,
"Patch": 2
"Minor": 251,
"Patch": 0
},
"satisfies": [
"GO"
Expand Down
4 changes: 2 additions & 2 deletions Tasks/GoToolV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 246,
"Patch": 2
"Minor": 251,
"Patch": 0
},
"satisfies": [
"GO"
Expand Down
4 changes: 2 additions & 2 deletions _generated/GoToolV0.versionmap.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Default|0.246.2
Node20_229_3|0.246.3
Default|0.251.0
Node20_229_3|0.251.1
9 changes: 8 additions & 1 deletion _generated/GoToolV0/gotool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,14 @@ async function acquireGo(version: string): Promise<string> {

function getFileName(version: string): string {
let platform: string = osPlat == "win32" ? "windows" : osPlat;
let arch: string = osArch == "x64" ? "amd64" : "386";
let arch: string;
if (osArch == "x64") {
arch = "amd64";
} else if (osArch == "arm64") {
arch = "arm64";
} else {
arch = "386";
}
let ext: string = osPlat == "win32" ? "zip" : "tar.gz";
let filename: string = util.format("go%s.%s-%s.%s", version, platform, arch, ext);
return filename;
Expand Down
9 changes: 5 additions & 4 deletions _generated/GoToolV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 246,
"Patch": 2
"Minor": 251,
"Patch": 0
},
"satisfies": [
"GO"
Expand Down Expand Up @@ -67,7 +67,8 @@
"TempDirNotSet": "The 'Agent.TempDirectory' environment variable was expected to be set."
},
"_buildConfigMapping": {
"Default": "0.246.2",
"Node20_229_3": "0.246.3"
"Default": "0.251.0",
"LocalPackages": "0.249.4",
"Node20_229_3": "0.251.1"
}
}
9 changes: 5 additions & 4 deletions _generated/GoToolV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 246,
"Patch": 2
"Minor": 251,
"Patch": 0
},
"satisfies": [
"GO"
Expand Down Expand Up @@ -67,7 +67,8 @@
"TempDirNotSet": "ms-resource:loc.messages.TempDirNotSet"
},
"_buildConfigMapping": {
"Default": "0.246.2",
"Node20_229_3": "0.246.3"
"Default": "0.251.0",
"LocalPackages": "0.249.4",
"Node20_229_3": "0.251.1"
}
}
9 changes: 8 additions & 1 deletion _generated/GoToolV0_Node20/gotool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,14 @@ async function acquireGo(version: string): Promise<string> {

function getFileName(version: string): string {
let platform: string = osPlat == "win32" ? "windows" : osPlat;
let arch: string = osArch == "x64" ? "amd64" : "386";
let arch: string;
if (osArch == "x64") {
arch = "amd64";
} else if (osArch == "arm64") {
arch = "arm64";
} else {
arch = "386";
}
let ext: string = osPlat == "win32" ? "zip" : "tar.gz";
let filename: string = util.format("go%s.%s-%s.%s", version, platform, arch, ext);
return filename;
Expand Down
9 changes: 5 additions & 4 deletions _generated/GoToolV0_Node20/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 246,
"Patch": 3
"Minor": 251,
"Patch": 1
},
"satisfies": [
"GO"
Expand Down Expand Up @@ -71,7 +71,8 @@
"TempDirNotSet": "The 'Agent.TempDirectory' environment variable was expected to be set."
},
"_buildConfigMapping": {
"Default": "0.246.2",
"Node20_229_3": "0.246.3"
"Default": "0.251.0",
"LocalPackages": "0.249.4",
"Node20_229_3": "0.251.1"
}
}
9 changes: 5 additions & 4 deletions _generated/GoToolV0_Node20/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 246,
"Patch": 3
"Minor": 251,
"Patch": 1
},
"satisfies": [
"GO"
Expand Down Expand Up @@ -71,7 +71,8 @@
"TempDirNotSet": "ms-resource:loc.messages.TempDirNotSet"
},
"_buildConfigMapping": {
"Default": "0.246.2",
"Node20_229_3": "0.246.3"
"Default": "0.251.0",
"LocalPackages": "0.249.4",
"Node20_229_3": "0.251.1"
}
}

0 comments on commit ab0844f

Please sign in to comment.