Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for arm64 #20783

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}