From 18e461c96f68cb8e4979d5c02a5f2690183870f6 Mon Sep 17 00:00:00 2001 From: Scott Fudally <40132546+sfudally@users.noreply.github.com> Date: Thu, 28 Jul 2022 05:55:16 -0700 Subject: [PATCH] Add mapping for Windows ARM64 to x86_64 artifacttool, similar to workaround for Darwin. Issue: https://developercommunity.visualstudio.com/t/azure-devops-cli-extension-issues-on-ARM/10084070 (#1287) --- azure-devops/azext_devops/dev/common/artifacttool_updater.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/azure-devops/azext_devops/dev/common/artifacttool_updater.py b/azure-devops/azext_devops/dev/common/artifacttool_updater.py index abea392c..fcc238cd 100644 --- a/azure-devops/azext_devops/dev/common/artifacttool_updater.py +++ b/azure-devops/azext_devops/dev/common/artifacttool_updater.py @@ -166,6 +166,11 @@ def _get_current_release(organization, override_version): if os_name == "Darwin" and arch in ["amd64", "arm64"]: arch = "x86_64" + # Similarly for Windows ARM64 targets there is no version of artifact tool. However, the x86_64 + # version can run under emulation, so we use that instead. + if os_name == "Windows" and arch == "ARM64": + arch = "x86_64" + release = client.get_clienttool_release( "ArtifactTool", os_name=os_name,