From c29323bcefc2bd5ff1521b54866fa3dacc27e745 Mon Sep 17 00:00:00 2001 From: AdmiringWorm Date: Sat, 20 Feb 2021 17:46:25 +0100 Subject: [PATCH] (GH-775) Add ability to skip duplicate package version during push This allows duplicate NuGet packages to not throw any errors when there is a duplicate package version in the upstream repository, and instead allow the build to continue without any failures --- Cake.Recipe/Content/packages.cake | 3 ++- Cake.Recipe/Content/toolsettings.cake | 4 +++- config.wyam.packages.xml | 2 +- docs/input/docs/fundamentals/set-tool-settings.md | 8 ++++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Cake.Recipe/Content/packages.cake b/Cake.Recipe/Content/packages.cake index 2220305c..ca31a641 100644 --- a/Cake.Recipe/Content/packages.cake +++ b/Cake.Recipe/Content/packages.cake @@ -261,7 +261,8 @@ public void PushNuGetPackages(ICakeContext context, bool isRelease, List - + diff --git a/docs/input/docs/fundamentals/set-tool-settings.md b/docs/input/docs/fundamentals/set-tool-settings.md index 11b9bdcb..9e2cf835 100644 --- a/docs/input/docs/fundamentals/set-tool-settings.md +++ b/docs/input/docs/fundamentals/set-tool-settings.md @@ -161,3 +161,11 @@ This is used when executing the DupFinder command line tool. If set to true, an Type: `bool?` Default Value: `null` + +### skipDuplicatesPackages + +This is used to tell NuGet to ignore issues with trying to push package versions when the version already exist upstream, instead of failing the build. + +Type: `bool` + +Default Value: `false`