Skip to content

Configure uv cache properly in taskfile #1382

@coderabbitai

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions