Commit 713bf28
refactor: resolve glob patterns to workspace-root-relative at task graph stage
Move glob pattern resolution from execution time to task graph construction,
making all glob patterns workspace-root-relative. This eliminates AnchoredGlob
usage, removes glob_base from CacheMetadata/CacheEntryKey, and simplifies the
execution pipeline.
Key changes:
- Add resolve_glob_to_workspace_relative() in vite_task_graph config
- Remove glob_base field from CacheMetadata and CacheEntryKey
- Update glob_inputs to work with workspace-root-relative patterns
- Update spawn.rs negative glob filtering with path cleaning
- Bump cache DB version from 9 to 10
- Remove vite_glob dependency from vite_task
- Remove plan file
https://claude.ai/code/session_01PR9yhnScRoVoHUcviV47u51 parent 9291a76 commit 713bf28
38 files changed
Lines changed: 374 additions & 389 deletions
File tree
- crates
- vite_task_graph
- src
- config
- vite_task_plan
- src
- tests/plan_snapshots/fixtures
- additional-envs/snapshots
- cache-cli-override/snapshots
- cache-keys/snapshots
- cache-scripts-task-override/snapshots
- cache-true-no-force-enable/snapshots
- cd-in-scripts/snapshots
- nested-cache-override/snapshots
- shell-fallback/snapshots
- synthetic-cache-disabled/snapshots
- synthetic-in-subpackage/snapshots
- vite_task
- src/session
- cache
- execute
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 45 | + | |
| 46 | + | |
69 | 47 | | |
70 | 48 | | |
71 | | - | |
72 | | - | |
| 49 | + | |
73 | 50 | | |
74 | 51 | | |
75 | 52 | | |
| |||
116 | 93 | | |
117 | 94 | | |
118 | 95 | | |
119 | | - | |
| 96 | + | |
120 | 97 | | |
121 | 98 | | |
122 | 99 | | |
| |||
172 | 149 | | |
173 | 150 | | |
174 | 151 | | |
175 | | - | |
| 152 | + | |
176 | 153 | | |
177 | | - | |
| 154 | + | |
178 | 155 | | |
179 | 156 | | |
180 | 157 | | |
181 | 158 | | |
182 | 159 | | |
183 | | - | |
184 | | - | |
| 160 | + | |
| 161 | + | |
185 | 162 | | |
186 | 163 | | |
187 | 164 | | |
| |||
208 | 185 | | |
209 | 186 | | |
210 | 187 | | |
211 | | - | |
| 188 | + | |
212 | 189 | | |
213 | | - | |
| 190 | + | |
214 | 191 | | |
215 | 192 | | |
216 | 193 | | |
| |||
239 | 216 | | |
240 | 217 | | |
241 | 218 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 219 | + | |
| 220 | + | |
247 | 221 | | |
248 | 222 | | |
249 | 223 | | |
| |||
264 | 238 | | |
265 | 239 | | |
266 | 240 | | |
267 | | - | |
268 | 241 | | |
269 | 242 | | |
270 | 243 | | |
271 | 244 | | |
272 | | - | |
| 245 | + | |
273 | 246 | | |
274 | 247 | | |
275 | 248 | | |
| |||
0 commit comments