From 449e99d0c014c837ae5d70df27e2e1f8c9d8c44f Mon Sep 17 00:00:00 2001 From: Grzegorz Dziadkiewicz Date: Tue, 15 Nov 2022 11:01:51 +0100 Subject: [PATCH] Add ignoreConflicts parameter to paket push --- src/app/Fake.DotNet.Paket/Paket.fs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/Fake.DotNet.Paket/Paket.fs b/src/app/Fake.DotNet.Paket/Paket.fs index 6cf0a4e84c4..f5684423851 100644 --- a/src/app/Fake.DotNet.Paket/Paket.fs +++ b/src/app/Fake.DotNet.Paket/Paket.fs @@ -132,6 +132,9 @@ module Paket = /// API key for the URL (default: value of the NUGET_KEY environment variable) ApiKey: string + + /// Ignore any HTTP409 (Conflict) errors and treat as success (default: false) + IgnoreConflicts: bool } /// Paket push default parameters @@ -143,7 +146,8 @@ module Paket = EndPoint = null WorkingDir = "./temp" DegreeOfParallelism = 8 - ApiKey = null } + ApiKey = null + IgnoreConflicts = false } /// /// Paket restore packages type @@ -206,6 +210,7 @@ module Paket = |> Arguments.appendNotEmpty "--url" parameters.PublishUrl |> Arguments.appendNotEmpty "--endpoint" parameters.EndPoint |> Arguments.appendNotEmpty "--api-key" parameters.ApiKey + |> Arguments.appendIf parameters.IgnoreConflicts "--ignoreConflicts" |> Arguments.append [ file ] |> startPaket parameters.ToolType parameters.ToolPath parameters.WorkingDir parameters.TimeOut | Pack parameters ->