Commit 445ae8b
committed
fix: resolve duplicate PATH environment variable in Rust compiler
- Extract updatePathInEnv helper function to properly handle PATH updates
- Remove existing PATH entry before adding updated one
- Fixes TestRustCompiler_GetRustEnv_WithBothHomes failure on Windows CI
- Prevents duplicate PATH entries that caused test assertion failures1 parent 922411b commit 445ae8b
File tree
1 file changed
+24
-3
lines changed- internal/features/scripting/infrastructure/compilers
1 file changed
+24
-3
lines changedLines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | | - | |
309 | | - | |
| 308 | + | |
310 | 309 | | |
311 | 310 | | |
312 | 311 | | |
313 | 312 | | |
314 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
315 | 336 | | |
316 | 337 | | |
317 | 338 | | |
| |||
0 commit comments