Fix default cache dependency glob

The new default in v6 used illegal patterns and therefore didn't match requirements files
This commit is contained in:
Kevin Stillhammer 2025-04-29 22:34:48 +02:00
parent 9a311713f4
commit fa87ec71d0
No known key found for this signature in database
3 changed files with 10 additions and 2 deletions

View file

@ -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 }}

View file

@ -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
> ```

View file

@ -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: