Azure / Azure/azure-devops-cli-extension

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

Open
#1,273 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

## 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.