mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-05-17 14:44: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
|
exit 1
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
- run: uv sync
|
||||||
|
working-directory: __tests__/fixtures/uv-project
|
||||||
|
|
||||||
test-activate-environment:
|
test-activate-environment:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
|
@ -210,7 +210,10 @@ changes. If you use relative paths, they are relative to the repository root.
|
||||||
> The default is
|
> The default is
|
||||||
> ```yaml
|
> ```yaml
|
||||||
> cache-dependency-glob: |
|
> cache-dependency-glob: |
|
||||||
> **/*(requirements|constraints)*.(txt|in)
|
> **/*requirements*.txt
|
||||||
|
> **/*requirements*.in
|
||||||
|
> **/*constraints*.txt
|
||||||
|
> **/*constraints*.in
|
||||||
> **/pyproject.toml
|
> **/pyproject.toml
|
||||||
> **/uv.lock
|
> **/uv.lock
|
||||||
> ```
|
> ```
|
||||||
|
|
|
@ -31,7 +31,10 @@ inputs:
|
||||||
"Glob pattern to match files relative to the repository root to control
|
"Glob pattern to match files relative to the repository root to control
|
||||||
the cache."
|
the cache."
|
||||||
default: |
|
default: |
|
||||||
**/*(requirements|constraints)*.(txt|in)
|
**/*requirements*.txt
|
||||||
|
**/*requirements*.in
|
||||||
|
**/*constraints*.txt
|
||||||
|
**/*constraints*.in
|
||||||
**/pyproject.toml
|
**/pyproject.toml
|
||||||
**/uv.lock
|
**/uv.lock
|
||||||
cache-suffix:
|
cache-suffix:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue