mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-23 08:41:48 +00:00
Separate cache construction from initialization (#3607)
## Summary Ensures that we only initialize the cache for commands that require it. Closes https://github.com/astral-sh/uv/issues/3539.
This commit is contained in:
parent
647f38be31
commit
55aedda379
14 changed files with 78 additions and 49 deletions
|
@ -15,7 +15,7 @@ pub(crate) struct CompileArgs {
|
|||
}
|
||||
|
||||
pub(crate) async fn compile(args: CompileArgs) -> anyhow::Result<()> {
|
||||
let cache = Cache::try_from(args.cache_args)?;
|
||||
let cache = Cache::try_from(args.cache_args)?.init()?;
|
||||
|
||||
let interpreter = if let Some(python) = args.python {
|
||||
python
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue