From c78fb12f5071fbefcf575e2be7634c5b6fe0a9f0 Mon Sep 17 00:00:00 2001 From: TheCakeIsNaOH Date: Thu, 28 Jan 2021 15:05:51 -0600 Subject: [PATCH] remove nupkgs before pack, see chocolatey/choco#2076 --- AU/Public/Update-Package.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/AU/Public/Update-Package.ps1 b/AU/Public/Update-Package.ps1 index 2938b56f..f4adcab6 100644 --- a/AU/Public/Update-Package.ps1 +++ b/AU/Public/Update-Package.ps1 @@ -254,6 +254,7 @@ function Update-Package { update_files if (Test-Path Function:\au_AfterUpdate) { 'Running au_AfterUpdate' | result; au_AfterUpdate $package | result } + Get-Item *.nupkg | Remove-Item -ea 0 choco pack --limit-output | result if ($LastExitCode -ne 0) { throw "Choco pack failed with exit code $LastExitCode" } } finally {