From f0cdc24a8f70f1379837514382a4b2317a64e4b7 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 19 Nov 2024 09:14:28 -0600 Subject: [PATCH] Use XDG (i.e. `~/.local/bin`) instead of the Cargo home directory in the installer (#14457) Closes https://github.com/astral-sh/ruff/issues/13927 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7598b4247e4c3..aebfe13650e2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -303,4 +303,4 @@ github-custom-job-permissions = { "build-docker" = { packages = "write", content # Whether to install an updater program install-updater = false # Path that installers should place binaries in -install-path = "CARGO_HOME" +install-path = ["$XDG_BIN_HOME/", "$XDG_DATA_HOME/../bin", "~/.local/bin"]