Skip to content

Duplicate uv cache directories created: .uv_cache and .uv-cache #16283

@ruziniuuuuu

Description

@ruziniuuuuu

Summary

Image

When using uv to manage Python dependencies, the tool creates two cache directories in the project root: .uv_cache/ and .uv-cache/. The difference is only the underscore vs. hyphen. This duplication is confusing and it is unclear which directory is the authoritative cache path.

Steps to Reproduce

  1. Initialize a project that uses uv for dependency management.
  2. Run uv sync (or other commands that populate the cache).
  3. Inspect the project root.

Expected Behavior

uv should create only a single cache directory (either .uv_cache or .uv-cache) and reuse it consistently.

Actual Behavior

Both .uv_cache/ and .uv-cache/ directories appear with similar contents, leading to confusion about which one is intended.

Platform

Ubuntu22.04, x86-64

Version

uv 0.8.22

Python version

python3.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions