mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-05-16 06:04:46 +00:00
Fix default cache dependency glob (#388)
The new default in v6 used illegal patterns and therefore didn't match requirements files Fixes: #385
This commit is contained in:
parent
9a311713f4
commit
ef6bcdff59
3 changed files with 10 additions and 2 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -244,6 +244,8 @@ jobs:
|
|||
exit 1
|
||||
fi
|
||||
shell: bash
|
||||
- run: uv sync
|
||||
working-directory: __tests__/fixtures/uv-project
|
||||
|
||||
test-activate-environment:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
|
@ -210,7 +210,10 @@ changes. If you use relative paths, they are relative to the repository root.
|
|||
> The default is
|
||||
> ```yaml
|
||||
> cache-dependency-glob: |
|
||||
> **/*(requirements|constraints)*.(txt|in)
|
||||
> **/*requirements*.txt
|
||||
> **/*requirements*.in
|
||||
> **/*constraints*.txt
|
||||
> **/*constraints*.in
|
||||
> **/pyproject.toml
|
||||
> **/uv.lock
|
||||
> ```
|
||||
|
|
|
@ -31,7 +31,10 @@ inputs:
|
|||
"Glob pattern to match files relative to the repository root to control
|
||||
the cache."
|
||||
default: |
|
||||
**/*(requirements|constraints)*.(txt|in)
|
||||
**/*requirements*.txt
|
||||
**/*requirements*.in
|
||||
**/*constraints*.txt
|
||||
**/*constraints*.in
|
||||
**/pyproject.toml
|
||||
**/uv.lock
|
||||
cache-suffix:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue