Commit 28b926b
committed
fix: normalize archive entry names and manifest paths to forward slashes
On Windows, PathBuf joins use backslashes, which leaked into tar archive
entry names and the manifest import_paths field. This caused test failures
on windows-latest CI and would break cross-platform package extraction.
Reuse the existing normalize_path() helper for all archive entry names
(app files, module files) and manifest import_path strings so they always
use forward slashes regardless of the host OS.1 parent 387f454 commit 28b926b
2 files changed
Lines changed: 20 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
275 | 278 | | |
276 | 279 | | |
277 | | - | |
| 280 | + | |
278 | 281 | | |
279 | 282 | | |
280 | | - | |
| 283 | + | |
281 | 284 | | |
282 | 285 | | |
283 | 286 | | |
| |||
301 | 304 | | |
302 | 305 | | |
303 | 306 | | |
304 | | - | |
| 307 | + | |
| 308 | + | |
305 | 309 | | |
306 | 310 | | |
307 | 311 | | |
| |||
310 | 314 | | |
311 | 315 | | |
312 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
313 | 320 | | |
314 | 321 | | |
315 | | - | |
| 322 | + | |
316 | 323 | | |
317 | 324 | | |
318 | 325 | | |
319 | | - | |
| 326 | + | |
320 | 327 | | |
321 | 328 | | |
322 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 18 | + | |
29 | 19 | | |
30 | 20 | | |
31 | 21 | | |
| |||
289 | 279 | | |
290 | 280 | | |
291 | 281 | | |
292 | | - | |
293 | | - | |
| 282 | + | |
294 | 283 | | |
295 | | - | |
296 | | - | |
297 | | - | |
| 284 | + | |
298 | 285 | | |
299 | 286 | | |
300 | 287 | | |
| |||
333 | 320 | | |
334 | 321 | | |
335 | 322 | | |
| 323 | + | |
336 | 324 | | |
337 | | - | |
| 325 | + | |
338 | 326 | | |
339 | 327 | | |
340 | 328 | | |
341 | 329 | | |
342 | | - | |
| 330 | + | |
343 | 331 | | |
344 | 332 | | |
345 | 333 | | |
346 | 334 | | |
347 | | - | |
| 335 | + | |
348 | 336 | | |
349 | 337 | | |
350 | 338 | | |
| |||
355 | 343 | | |
356 | 344 | | |
357 | 345 | | |
358 | | - | |
359 | | - | |
360 | | - | |
| 346 | + | |
361 | 347 | | |
362 | 348 | | |
363 | 349 | | |
| |||
0 commit comments