Commit cdcc4a2
fix(snapshots): Preserve subdirectory structure in manifest keys (#3269)
Use full relative paths (e.g. `settings/profile.png`) instead of bare
filenames (e.g. `profile.png`) as manifest keys when uploading build
snapshots.
Previously, `upload_images` extracted only the filename from each
image's
relative path to use as the manifest key. This meant images in different
subdirectories with the same filename would collide — only the first
encountered would be uploaded, and the rest silently skipped with a
warning.
Now the manifest key includes the full relative path from the upload
directory, preserving the subdirectory structure and eliminating false
collisions.
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3d7f705 commit cdcc4a2
2 files changed
+9
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | | - | |
| 357 | + | |
359 | 358 | | |
360 | 359 | | |
361 | 360 | | |
| |||
367 | 366 | | |
368 | 367 | | |
369 | 368 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
| 369 | + | |
378 | 370 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
| 371 | + | |
| 372 | + | |
384 | 373 | | |
385 | 374 | | |
386 | 375 | | |
| |||
392 | 381 | | |
393 | 382 | | |
394 | 383 | | |
395 | | - | |
396 | 384 | | |
397 | 385 | | |
398 | 386 | | |
399 | 387 | | |
400 | 388 | | |
401 | | - | |
| 389 | + | |
402 | 390 | | |
403 | 391 | | |
404 | 392 | | |
405 | 393 | | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
418 | 397 | | |
419 | 398 | | |
420 | 399 | | |
| |||
0 commit comments