Skip to content

Commit

Permalink
Add ignoreConflicts parameter to paket push
Browse files Browse the repository at this point in the history
  • Loading branch information
gdziadkiewicz committed Nov 15, 2022
1 parent ada1877 commit 651bbd6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/Fake.DotNet.Paket/Paket.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -143,7 +146,8 @@ module Paket =
EndPoint = null
WorkingDir = "./temp"
DegreeOfParallelism = 8
ApiKey = null }
ApiKey = null
IgnoreConflicts = false }

/// <summary>
/// Paket restore packages type
Expand Down Expand Up @@ -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 ->
Expand Down

0 comments on commit 651bbd6

Please sign in to comment.