←back to thread

740 points chirau | 4 comments | | HN request time: 0.354s | source
1. oezi ◴[] No.44358422[source]
I continue to be puzzled why sometime running uvx (uv tool run) will redownload all dependencies even though it just downloaded them for another tool. Downloading torch 15 times per day gets old even on 500 mbits
replies(2): >>44358558 #>>44358572 #
2. holysoles ◴[] No.44358558[source]
Might be worth opening an issue, the project states it aims to aggressively cache dependencies: https://docs.astral.sh/uv/concepts/cache

Maybe that functionality isnt implemented the same way for uvx.

You could try this equivalent command that is under "uv run" to see if it behaves differently: https://docs.astral.sh/uv/concepts/tools/#relationship-to-uv...

replies(1): >>44358616 #
3. veganjay ◴[] No.44358572[source]
Initially, I used `uv tool run <name>`, but later discovered `uv tool install <name>`. The `install` command downloads dependencies once and caches them for future use. It is similar to how `pipx install <name>` works.

e.g.

$ uv tool install asciinema

$ asciinema play example.cast

4. oezi ◴[] No.44358616[source]
I haven't been able to find any kind of rhyme or rhythm to it, so I don't know how to explain when it happens or how to better debug it for a bug report.