Commit f9e49ac
authored
fix: bump minimatch to v9 (CN-1004) (#780)
Two options are now passed to generatePathMatcher to preserve existing behavior across the v3→v9 breaking changes:
windowsPathsNoEscape: true — In v9, backslashes are treated as escape characters by default (e.g. \* means a literal *). This option restores the v3 behavior where backslashes are path separators only, replaced with / before matching. Since we match file paths inside container layers (which can include \ from Windows images), leaving this off would cause v9 to misinterpret those backslashes and break glob matching.
optimizationLevel: 0 — v9 defaults to level 1, which rewrites patterns containing .. (e.g. a/b/../* becomes a/*). Level 0 disables that rewriting so patterns are matched literally against the path string rather than being silently transformed.1 parent f42f421 commit f9e49ac
File tree
4 files changed
+216
-45
lines changed- lib/inputs/file-pattern
4 files changed
+216
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | | - | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
21 | | - | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
0 commit comments