Skip to content

Commit 8ca63e9

Browse files
committed
release.hs: use --install-ghc
1 parent 932ee01 commit 8ca63e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

etc/scripts/release.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,11 @@ rules global@Global{..} args = do
221221
[ "-u", gGpgKey
222222
, dropExtension out ]
223223

224-
installBinDir </> stackExeFileName %> \_ -> do
224+
installBinDir </> stackExeFileName %> \out -> do
225225
alwaysRerun
226-
cmd stackProgName (stackArgs global) "build --pedantic"
226+
actionOnException
227+
(cmd stackProgName (stackArgs global) "--install-ghc build --pedantic")
228+
(removeFile out)
227229

228230
debDistroRules ubuntuDistro ubuntuVersions
229231
debDistroRules debianDistro debianVersions

0 commit comments

Comments
 (0)