Skip to content

Commit aadfaf0

Browse files
authored
Change default cache-dependency-glob (#352)
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`. Closes: #261
1 parent a0f9da6 commit aadfaf0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ changes. If you use relative paths, they are relative to the repository root.
210210
> The default is
211211
> ```yaml
212212
> cache-dependency-glob: |
213-
> **/requirements*.txt
213+
> **/*(requirements|constraints)*.(txt|in)
214+
> **/pyproject.toml
214215
> **/uv.lock
215216
> ```
216217

action.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ inputs:
3131
"Glob pattern to match files relative to the repository root to control
3232
the cache."
3333
default: |
34+
**/*(requirements|constraints)*.(txt|in)
35+
**/pyproject.toml
3436
**/uv.lock
35-
**/requirements*.txt
3637
cache-suffix:
3738
description: "Suffix for the cache key"
3839
required: false

0 commit comments

Comments
 (0)