Commit 86b0665
committed
fix(ci): prevent stale cache from overwriting source files in Node builds
Root cause: The build-and-cache-binding action caches the entire
crates/kreuzberg-node/ directory, including source files. When fallback
restore keys matched old caches (e.g. v1), the old source files
overwrote the checked-out code. Since cache-hit was false (partial
match), the build step ran but compiled the stale restored source,
failing with missing ExtractionResult fields.
Three fixes applied:
- Move cache version to beginning of cache key so fallback prefix
matching respects version boundaries
- Add git checkout step after partial cache restore to ensure source
files always match the current commit
- Bump cache version to v4 to force fresh builds1 parent c305a72 commit 86b0665
File tree
2 files changed
+33
-9
lines changed- .github
- actions/build-and-cache-binding
- workflows
2 files changed
+33
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| |||
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
210 | | - | |
211 | 212 | | |
212 | 213 | | |
213 | 214 | | |
| |||
273 | 274 | | |
274 | 275 | | |
275 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
276 | 300 | | |
277 | 301 | | |
278 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
0 commit comments