Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: the azure-devops cache folder location is computed differently in different places #1366

Open
jessehouwing opened this issue Sep 20, 2023 · 0 comments
Labels
Feature Feature Work required.

Comments

@jessehouwing
Copy link

The Azure DevOps CLI has a way to redirect the config and the cache directory to a different location.

In most code paths it's enough to only redirect the CONFIG directory and in that case the cache folder will automatically be placed underneath the config folder.

But there are a few places in which the cache folder is placed under the home directory instead.

Under home

azure_devops_cache_dir = os.getenv('AZURE_DEVOPS_CACHE_DIR', None)\

Under config

os.path.join(AZ_DEVOPS_GLOBAL_CONFIG_DIR, 'cache'))

I'd expect a single consistent behavior.

https://github.com/search?q=repo%3AAzure%2Fazure-devops-cli-extension+os.getenv&type=code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Feature Work required.
Projects
None yet
Development

No branches or pull requests

1 participant