mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Rename PUFFIN
environment variables to UV
(#1319)
A couple of these are actually user-facing although undocumented
This commit is contained in:
parent
0579a04014
commit
0780afff95
14 changed files with 52 additions and 56 deletions
|
@ -15,7 +15,7 @@ pub struct CacheArgs {
|
|||
no_cache: bool,
|
||||
|
||||
/// Path to the cache directory.
|
||||
#[arg(global = true, long, env = "PUFFIN_CACHE_DIR")]
|
||||
#[arg(global = true, long, env = "UV_CACHE_DIR")]
|
||||
cache_dir: Option<PathBuf>,
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ impl TryFrom<CacheArgs> for Cache {
|
|||
|
||||
/// Prefer, in order:
|
||||
/// 1. A temporary cache directory, if the user requested `--no-cache`.
|
||||
/// 2. The specific cache directory specified by the user via `--cache-dir` or `PUFFIN_CACHE_DIR`.
|
||||
/// 2. The specific cache directory specified by the user via `--cache-dir` or `UV_CACHE_DIR`.
|
||||
/// 3. The system-appropriate cache directory.
|
||||
/// 4. A `.uv_cache` directory in the current working directory.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue