azure-devops-cli-extension icon indicating copy to clipboard operation
azure-devops-cli-extension copied to clipboard

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

Open jamesdooleymsft opened this issue 2 years ago • 0 comments

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.

  • az artifacts universal download --organization a --feed {} --name {} --version {} --path {} --scope {} --project {}
  • az artifacts universal download --organization b --feed {} --name {} --version {} --path {} --scope {} --project {}
  • az artifacts universal download --organization a --feed {} --name {} --version {} --path {} --scope {} --project {}
  • az artifacts universal download --organization b --feed {} --name {} --version {} --path {} --scope {} --project {}

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

jamesdooleymsft avatar May 07 '22 00:05 jamesdooleymsft