Skip to content

Commit d0907e2

Browse files
Print out bootstrapper output to output channel
1 parent 13ea0f4 commit d0907e2

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/paket.fs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ let UpdatePaketSilent () =
5959
| Some path -> Process.exec path "mono" ""
6060
| None -> Promise.empty
6161

62+
let UpdatePaket () =
63+
match getBootstrapperPath () with
64+
| Some path ->
65+
Process.spawnWithNotification path "mono" "" outputChannel
66+
|> Process.toPromise
67+
| None -> Promise.empty
68+
6269
let runWithPaketLocation f =
6370
match getPaketPath () with
6471
| Some location ->
@@ -72,7 +79,7 @@ let private spawnPaket cmd =
7279
window.showErrorMessage("Paket can be run only if folder is open")
7380
|> ignore
7481
else
75-
UpdatePaketSilent ()
82+
UpdatePaket ()
7683
|> Promise.bind (fun _ ->
7784
runWithPaketLocation (fun location ->
7885
outputChannel.clear ()
@@ -95,7 +102,7 @@ let private spawnPaket cmd =
95102

96103
let private execPaket cmd = promise {
97104
if workspace.rootPath <> null then
98-
let! _ = UpdatePaketSilent ()
105+
let! _ = UpdatePaket ()
99106
return! runWithPaketLocation (fun location ->
100107
Process.exec location "mono" cmd)
101108
else
@@ -278,7 +285,7 @@ let private createDependenciesProvider () =
278285
| PaketTag "nuget" -> send word
279286
| PaketTag "source" -> [ "https://api.nuget.org/v3/index.json"; "https://nuget.org/api/v2" ] |> concatAndLift
280287
| PaketTag "framework:" ->
281-
[
288+
[
282289
"net35"
283290
"net40"
284291
"net45"

0 commit comments

Comments
 (0)