Skip to content

Commit e5f5eb7

Browse files
authored
Merge pull request #1562 from SteveL-MSFT/v3.2.2
Backport minor fixes to PSScript resource
2 parents d3fcad9 + 8e60f93 commit e5f5eb7

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

.pipelines/DSC-Official.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ variables:
3131
value: ${{ parameters.OfficialBuild }}
3232
- name: PublishToStore
3333
value: ${{ parameters.PublishToStore }}
34+
- name: RustVersion
35+
value: ms-prod-1.95
3436

3537
resources:
3638
repositories:
@@ -114,6 +116,7 @@ extends:
114116
signSrcPath: '$(signSrcPath)'
115117
PackageRoot: '$(PackageRoot)'
116118
rustSDK: '$(Rust.SDK)'
119+
rustVersion: ${{ variables.RustVersion }}
117120

118121
- job: BuildWin_arm64
119122
dependsOn: SetPackageVersion
@@ -134,7 +137,7 @@ extends:
134137
signSrcPath: '$(signSrcPath)'
135138
PackageRoot: '$(PackageRoot)'
136139
rustSDK: '$(Rust.SDK)'
137-
140+
rustVersion: ${{ variables.RustVersion }}
138141
- job: CreateMsixBundle
139142
dependsOn:
140143
- BuildWin_x64
@@ -283,7 +286,7 @@ extends:
283286
steps:
284287
- task: RustInstaller@1
285288
inputs:
286-
rustVersion: ms-prod-1.93
289+
rustVersion: ${{ variables.RustVersion }}
287290
toolchainFeed: $(Rust.SDK)
288291
additionalTargets: x86_64-unknown-linux-musl
289292
displayName: Install Rust
@@ -317,7 +320,7 @@ extends:
317320
steps:
318321
- task: RustInstaller@1
319322
inputs:
320-
rustVersion: ms-prod-1.93
323+
rustVersion: ${{ variables.RustVersion }}
321324
toolchainFeed: $(Rust.SDK)
322325
additionalTargets: aarch64-unknown-linux-musl
323326
displayName: Install Rust
@@ -375,7 +378,7 @@ extends:
375378
steps:
376379
- task: RustInstaller@1
377380
inputs:
378-
rustVersion: ms-prod-1.93
381+
rustVersion: ${{ variables.RustVersion }}
379382
toolchainFeed: $(Rust.SDK)
380383
additionalTargets: $(buildName)
381384
displayName: Install Rust

.pipelines/DSC-Windows.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ parameters:
1010
default: Release
1111
- name: RustSDK
1212
type: string
13+
- name: RustVersion
14+
type: string
1315

1416
steps:
1517
- pwsh: |
@@ -18,7 +20,7 @@ steps:
1820
displayName: 🛠️ Workaround for the LoadLibrary ACCESS_VIOLATION OneBranch issue
1921
- task: RustInstaller@1
2022
inputs:
21-
rustVersion: ms-prod-1.93
23+
rustVersion: ${{ parameters.RustVersion }}
2224
toolchainFeed: ${{ parameters.RustSDK }}
2325
additionalTargets: ${{ parameters.buildName }}
2426
displayName: Install Rust

helpers.build.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ function Get-RustUp {
387387
if ($null -ne (Get-Command msrustup -CommandType Application -ErrorAction Ignore)) {
388388
Write-Verbose -Verbose "Using msrustup"
389389
$rustup = 'msrustup'
390-
$channel = 'ms-prod-1.93'
390+
$channel = 'ms-prod-1.95'
391391
if ($architecture -eq 'current') {
392392
$env:MSRUSTUP_TOOLCHAIN = "$architecture"
393393
}
@@ -1475,7 +1475,7 @@ function Test-Clippy {
14751475
Set-DefaultWorkspaceMemberGroup @workspaceParams
14761476
}
14771477
}
1478-
1478+
14791479
process {
14801480
$clippyFlags = @(
14811481
'--%'

resources/PSScript/psscript.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ try {
153153
} else {
154154
"Script failed with terminating error: $($ps.InvocationStateInfo.Reason)"
155155
}
156+
Write-TraceQueue
156157
Write-DscTrace -Now -Level Error -Message $message
157158
exit 1
158159
}
@@ -162,7 +163,6 @@ try {
162163

163164

164165
if ($ps.HadErrors) {
165-
# Errors can be non-terminating, so we just write a warning and continue
166166
Write-DscTrace -Now -Level Debug -Message 'Non-terminating errors occurred during script execution.'
167167
}
168168

@@ -171,6 +171,7 @@ try {
171171
}
172172
}
173173
catch {
174+
Write-TraceQueue
174175
Write-DscTrace -Now -Level Error -Message ($_ | Format-List -Force * | Out-String)
175176
exit 1
176177
}

0 commit comments

Comments
 (0)