mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Add UV_NO_CACHE
environment variable (#1383)
It's a little picky about the value, but that seems okay. ``` ❯ ./target/debug/uv pip install trio Audited 1 package in 4ms ❯ UV_NO_CACHE=true ./target/debug/uv pip install trio Audited 1 package in 50ms ``` Closes #1382
This commit is contained in:
parent
fbd6d87214
commit
c6a43e92f9
1 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,13 @@ use crate::Cache;
|
|||
#[derive(Parser, Debug, Clone)]
|
||||
pub struct CacheArgs {
|
||||
/// Avoid reading from or writing to the cache.
|
||||
#[arg(global = true, long, short, alias = "no-cache-dir")]
|
||||
#[arg(
|
||||
global = true,
|
||||
long,
|
||||
short,
|
||||
alias = "no-cache-dir",
|
||||
env = "UV_NO_CACHE"
|
||||
)]
|
||||
no_cache: bool,
|
||||
|
||||
/// Path to the cache directory.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue