Context
Currently, the uv-component task in taskfile.yaml uses the UV_CACHE_DIR environment variable to specify the cache directory. However, according to the uv documentation on cache directory, using the --cache-dir flag would be more explicit and readable.
Current Implementation
The current implementation sets UV_CACHE_DIR as an environment variable:
env:
UV_CACHE_DIR: "{{.G_BUILD_DIR}}/uv-cache"
Proposed Enhancement
- Use
--cache-dir flag instead of environment variable for better explicitness
- Investigate whether the cache should be shared across all uv components or isolated
- Check if integration tests have similar cache configuration issues
- Ensure proper cache management to avoid permission errors in CI/CD workflows
Related
Context
Currently, the
uv-componenttask intaskfile.yamluses theUV_CACHE_DIRenvironment variable to specify the cache directory. However, according to the uv documentation on cache directory, using the--cache-dirflag would be more explicit and readable.Current Implementation
The current implementation sets
UV_CACHE_DIRas an environment variable:Proposed Enhancement
--cache-dirflag instead of environment variable for better explicitnessRelated