From 6b6fbb136904fad101acb7927ffdc65a6d28df51 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 7fd7c1e7..9634d6a7 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 {