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 cabf667 commit 6191793
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/Fake.DotNet.Paket/Paket.fs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ type PaketPushParams =
EndPoint : string
WorkingDir : string
DegreeOfParallelism : int
ApiKey : string }
ApiKey : string
IgnoreConflicts: bool }

/// Paket push default parameters
let PaketPushDefaults() : PaketPushParams =
Expand All @@ -77,7 +78,8 @@ let PaketPushDefaults() : PaketPushParams =
EndPoint = null
WorkingDir = "./temp"
DegreeOfParallelism = 8
ApiKey = null }
ApiKey = null
IgnoreConflicts = false }

/// Paket restore packages type
type PaketRestoreParams =
Expand Down Expand Up @@ -124,6 +126,7 @@ let internal createProcess (runType:StartType) =
|> 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 6191793

Please sign in to comment.