3 ms·
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. Downloadi
by oezi 1y ago
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
- holysoles 1y agoMight be worth opening an issue, the project states it aims to aggressively cache dependencies: https://docs.astral.sh/uv/concepts/cache 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-run https://docs.astral.sh/uv/concepts/tools/#relationship-to-uv...
- oezi 1y agoI 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.
- veganjay 1y agoInitially, 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