-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
questionAsking for clarification or supportAsking for clarification or support
Description
Currently, uv prioritizes $HOME/... paths over $XDG_* paths in most cases. This behavior is contradictory to the XDG specification.
This means when setting XDG_* variables in a docker image, for example, UV_* variables also must be set.
Examples of variables which do not automatically use the XDG_* specification:
ENV UV_TOOL_DIR="${XDG_STATE_HOME}/uv/tools"
ENV UV_PYTHON_INSTALL_DIR="${XDG_STATE_HOME}/uv/python"
ENV UV_CACHE_DIR="${XDG_CACHE_HOME}/uv"Example of a UV_* variable mapping to multiple potential XDG_* locations: https://docs.astral.sh/uv/configuration/installer/#changing-the-install-path
Consistent environment inheritance would make uv easier to configure according to the XDG specification.
Metadata
Metadata
Assignees
Labels
questionAsking for clarification or supportAsking for clarification or support