authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-05-08 15:20:02-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-05-08 15:20:02-07:00
log7bfacd55d89524ee2bce68e5ae863222c4609f68
tree77f8ec3417b81959434609358434ee08cc82c30b
parent271d65e047c557b1bf74c66dc18c8f09d42893a0
signature Signed by PGP key B5690EEEBB952194

[codex] Handle NuGet provider bootstrap failures (#2608)

Co-authored-by: Julius Marminge <julius@macmini.local>

1 files changed, 12 insertions(+), 6 deletions(-)

.github/workflows/release.yml+12-6
...@@ -272,11 +272,16 @@ jobs:...@@ -272,11 +272,16 @@ jobs:
272 exit 0272 exit 0
273 }273 }
274274
275 Install-PackageProvider `275 try {
276 -Name NuGet `276 Install-PackageProvider `
277 -MinimumVersion 2.8.5.201 `277 -Name NuGet `
278 -Force `278 -MinimumVersion 2.8.5.201 `
279 -Scope CurrentUser279 -Force `
280 -Scope CurrentUser `
281 -ErrorAction Stop
282 } catch {
283 Write-Warning "Could not bootstrap NuGet package provider. Continuing because the runner may already have a usable provider. $($_.Exception.Message)"
284 }
280285
281 Install-Module `286 Install-Module `
282 -Name TrustedSigning `287 -Name TrustedSigning `
...@@ -284,7 +289,8 @@ jobs:...@@ -284,7 +289,8 @@ jobs:
284 -Force `289 -Force `
285 -AllowClobber `290 -AllowClobber `
286 -Repository PSGallery `291 -Repository PSGallery `
287 -Scope CurrentUser292 -Scope CurrentUser `
293 -ErrorAction Stop
288294
289 Import-Module TrustedSigning -MinimumVersion 0.5.0 -Force295 Import-Module TrustedSigning -MinimumVersion 0.5.0 -Force
290 Get-Command Invoke-TrustedSigning -ErrorAction Stop296 Get-Command Invoke-TrustedSigning -ErrorAction Stop