Skip to content

Commit

Permalink
build.fsx: use paket as local tool
Browse files Browse the repository at this point in the history
  • Loading branch information
jindraivanek committed Nov 13, 2019
1 parent 6f671bc commit 6ed1572
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,14 @@ Target.create "TestExternalProjectsFailing" (fun _ -> testExternalProjects exter

// Workaround for https://github.com/fsharp/FAKE/issues/2242
let pushPackage additionalArguments =
let paketFile = Path.Combine(".", ".paket", (if Environment.isWindows then "paket.exe" else "paket"))
IO.Directory.EnumerateFiles("bin", "*.nupkg", SearchOption.TopDirectoryOnly)
|> Seq.iter (fun nupkg ->
let args =
[ yield "push";
yield! additionalArguments
yield nupkg ]

CreateProcess.fromRawCommand paketFile args
CreateProcess.fromRawCommand "dotnet" ("paket" :: args)
|> CreateProcess.disableTraceCommand
|> CreateProcess.redirectOutput
|> CreateProcess.withOutputEventsNotNull Trace.trace Trace.traceError
Expand Down

0 comments on commit 6ed1572

Please sign in to comment.