From 069737c3c3e23aa7828ee8f0667568b4b6486a45 Mon Sep 17 00:00:00 2001 From: Scott Fudally Date: Fri, 15 Jul 2022 15:05:07 -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 --- 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,