Commit 8a501eb
committed
Merged PR 13216013: don't update rust if used in ADO
don't update rust if used in ADO
----
#### AI description (iteration 1)
#### PR Classification
Bug fix to prevent the rust toolchain from updating in an ADO environment.
#### PR Summary
This pull request updates the build script to ensure that rust is not updated when running in an ADO environment.
- In `build.ps1`, the rust update condition is modified to run only if the `$usingADO` flag (set based on the `TF_BUILD` environment variable) is false.
- In `build.ps1`, the `$usingADO` variable is moved to a global scope, removing its redundant local assignment in the test block.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
187 | | - | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| |||
500 | 501 | | |
501 | 502 | | |
502 | 503 | | |
503 | | - | |
504 | | - | |
505 | 504 | | |
506 | 505 | | |
507 | 506 | | |
| |||
0 commit comments