mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-04-05 07:05:18 -04:00
Change default cache-dependency-glob
To support more users by default we should support popular dependency file formats. A quick GitHub search shows ~40k uses of `constraint.txt` and ~16k uses of `requirements.in`.
This commit is contained in:
parent
2d49baf2b6
commit
8b78f117be
2 changed files with 4 additions and 2 deletions
|
@ -196,7 +196,8 @@ changes. If you use relative paths, they are relative to the repository root.
|
|||
> The default is
|
||||
> ```yaml
|
||||
> cache-dependency-glob: |
|
||||
> **/requirements*.txt
|
||||
> **/*(requirements|constraints)*.(txt|in)
|
||||
> **/pyproject.toml
|
||||
> **/uv.lock
|
||||
> ```
|
||||
|
||||
|
|
|
@ -31,8 +31,9 @@ inputs:
|
|||
"Glob pattern to match files relative to the repository root to control
|
||||
the cache."
|
||||
default: |
|
||||
**/*(requirements|constraints)*.(txt|in)
|
||||
**/pyproject.toml
|
||||
**/uv.lock
|
||||
**/requirements*.txt
|
||||
cache-suffix:
|
||||
description: "Suffix for the cache key"
|
||||
required: false
|
||||
|
|
Loading…
Add table
Reference in a new issue