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:
272272 exit 0
273273 }
274274
275 Install-PackageProvider `
276 -Name NuGet `
277 -MinimumVersion 2.8.5.201 `
278 -Force `
279 -Scope CurrentUser
275 try {
276 Install-PackageProvider `
277 -Name NuGet `
278 -MinimumVersion 2.8.5.201 `
279 -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
281286 Install-Module `
282287 -Name TrustedSigning `
......@@ -284,7 +289,8 @@ jobs:
284289 -Force `
285290 -AllowClobber `
286291 -Repository PSGallery `
287 -Scope CurrentUser
292 -Scope CurrentUser `
293 -ErrorAction Stop
288294
289295 Import-Module TrustedSigning -MinimumVersion 0.5.0 -Force
290296 Get-Command Invoke-TrustedSigning -ErrorAction Stop