From 07629c803a0779326e6c485c9712808b192dd36b Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 14 Apr 2022 14:20:42 -1000 Subject: [PATCH] stack: bump stack & shake to latest nightly --- Shake.hs | 30 +++++++++++++++--------------- stack.yaml | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Shake.hs b/Shake.hs index d0deaf73e..4d2749e95 100755 --- a/Shake.hs +++ b/Shake.hs @@ -1,5 +1,5 @@ #!/usr/bin/env stack -{- stack script --resolver nightly-2022-03-03 --compile +{- stack script --resolver nightly-2022-04-14 --compile --extra-include-dirs /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/ffi --package base-prelude --package directory @@ -276,22 +276,22 @@ main = do -- (used by "cabalfiles" and "setversion") let gencabalfiles = do - -- Update cabal files with stack build. - -- stack 1.7+ no longer updates cabal files with --dry-run, we must do a full build. - -- stack can return zero exit code while failing to update cabal files so - -- we need to check for the error message (specifically) on stderr. - -- out <- fromStdouterr <$> -- (getting both stdout and stderr here just as an example) - -- (cmd (EchoStdout True) (EchoStderr True) Shell "stack build" :: Action (Stdouterr String)) - -- when ("was generated with a newer version of hpack" `isInfixOf` out) $ - -- liftIO $ putStr out >> exitFailure + -- Update cabal files with stack build. + -- stack 1.7+ no longer updates cabal files with --dry-run, we must do a full build. + -- stack can return zero exit code while failing to update cabal files so + -- we need to check for the error message (specifically) on stderr. + -- out <- fromStdouterr <$> -- (getting both stdout and stderr here just as an example) + -- (cmd (EchoStdout True) (EchoStderr True) Shell "stack build" :: Action (Stdouterr String)) + -- when ("was generated with a newer version of hpack" `isInfixOf` out) $ + -- liftIO $ putStr out >> exitFailure - -- Or update them with hpack directly. - -- It should be the same hpack version that's in current stack, to avoid commit conflicts. - forM_ pkgdirs $ \d -> cmd_ (Cwd d) Shell "hpack --no-hash" + -- Or update them with hpack directly. + -- It should be the same hpack version that's in current stack, to avoid commit conflicts. + forM_ pkgdirs $ \d -> cmd_ (Cwd d) Shell "hpack --no-hash" - when commit $ do - let msg = ";cabal: update cabal files" - cmd Shell gitcommit ("-m '"++msg++"' --") cabalfiles + when commit $ do + let msg = ";cabal: update cabal files" + cmd Shell gitcommit ("-m '"++msg++"' --") cabalfiles -- Update version strings in most "source" files to match what's in PKG/.version. -- If a version number is provided as first argument, save that in PKG/.version files first. diff --git a/stack.yaml b/stack.yaml index ed217fdc0..94d1b298a 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,6 +1,6 @@ # stack build plan using GHC 9.2.2 -resolver: nightly-2022-03-25 +resolver: nightly-2022-04-14 packages: - hledger-lib