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:
Kevin Stillhammer 2025-04-29 22:42:06 +02:00 committed by GitHub
parent 9a311713f4
commit ef6bcdff59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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: