Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
617 stars 239 forks source link

az artifacts universal download wastes time re-downloading different versions of Universal Packages tooling #1273

Open jamesdooleymsft opened 2 years ago

jamesdooleymsft commented 2 years ago

Describe the bug

Command Name az artifacts universal download Extension Name: azure-devops. Version: 0.25.0.

Errors:

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Expected Behavior

I expected the commands to spend most of the time downloading the artifacts. Instead, they spend most of their time re-downloading "Universal Packages tooling" as the two organizations apparently require different versions and 'az artifacts' only caches one locally. I see both ArtifactTool_win10-x64_0.2.231 and ArtifactTool_win10-x64_0.2.236 repeatedly downloaded.

Environment Summary

Windows-10-10.0.22000-SP0
Python 3.10.4
Installer: MSI

azure-cli 2.36.0

Extensions:
azure-devops 0.25.0

Dependencies:
msal 1.17.0
azure-mgmt-resource 20.0.0

Additional Context