File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -542,6 +542,23 @@ Running `actions/checkout` after `setup-uv` **is not supported**.
542
542
No, `setup-uv` alone wont install any libraries from your `pyproject.toml` or `requirements.txt`, it only sets up `uv`.
543
543
You should run `uv sync` or `uv pip install .` separately, or use `uv run ...` to ensure necessary dependencies are installed.
544
544
545
+ # ## Why is a changed cache not detected and not the full cache uploaded?
546
+
547
+ When `setup-uv` starts it has to know whether it is better to download an existing cache
548
+ or start fresh and download every dependency again.
549
+ It does this by using a combination of hashes calculated on the contents of e.g. `uv.lock`.
550
+
551
+ By calculating these hashes and combining them in a key `setup-uv` can check
552
+ if an uploaded cache exists for this key.
553
+ If yes (e.g. contents of `uv.lock` did not change since last run) the dependencies in the cache
554
+ are up to date and the cache will be downloaded and used.
555
+
556
+ Details on determining which files will lead to different caches can be read under
557
+ [cache-dependency-glob](#cache-dependency-glob)
558
+
559
+ Some dependencies will never be uploaded to the cache and will be downloaded again on each run
560
+ as described in [disable-cache-pruning](#disable-cache-pruning)
561
+
545
562
# # Acknowledgements
546
563
547
564
` setup-uv` was initially written and published by [Kevin Stillhammer](https://github.com/eifinger)
You can’t perform that action at this time.
0 commit comments