File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -190,30 +190,36 @@ binaryUpgrade (BinaryOpts mplatform force' mver morg mrepo) =
190
190
isNewer <-
191
191
case mdownloadVersion of
192
192
Nothing -> do
193
- prettyErrorL $
194
- flow " Unable to determine upstream version from GitHub metadata"
195
- :
196
- [ line <> flow " Rerun with --force-download to force an upgrade"
197
- | not force]
193
+ prettyError $
194
+ flow " Unable to determine upstream version from GitHub metadata."
195
+ <> if force
196
+ then mempty
197
+ else
198
+ line
199
+ <> fillSep
200
+ [ flow " Rerun with"
201
+ , style Shell " --force-download"
202
+ , flow " to force an upgrade."
203
+ ]
198
204
pure False
199
205
Just downloadVersion -> do
200
206
prettyInfoL
201
207
[ flow " Current Stack version:"
202
208
, fromString (versionString stackVersion) <> " ,"
203
209
, flow " available download version:"
204
- , fromString (versionString downloadVersion)
210
+ , fromString (versionString downloadVersion) <> " . "
205
211
]
206
212
pure $ downloadVersion > stackVersion
207
213
toUpgrade <- case (force, isNewer) of
208
214
(False , False ) -> do
209
215
prettyInfoS " Skipping binary upgrade, you are already running the most \
210
- \recent version"
216
+ \recent version. "
211
217
pure False
212
218
(True , False ) -> do
213
- prettyInfoS " Forcing binary upgrade"
219
+ prettyInfoS " Forcing binary upgrade. "
214
220
pure True
215
221
(_, True ) -> do
216
- prettyInfoS " Newer version detected, downloading"
222
+ prettyInfoS " Newer version detected, downloading. "
217
223
pure True
218
224
when toUpgrade $ do
219
225
config <- view configL
You can’t perform that action at this time.
0 commit comments