Skip to content

Commit 02567ee

Browse files
committed
release.hs: don't require executable-path
It has trouble on OS X with GHC 7.10.2.
1 parent 379add6 commit 02567ee

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

scripts/release/release.hs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env stack
2-
-- stack --install-ghc runghc --package=shake --package=extra --package=zip-archive --package=mime-types --package=http-types --package=http-conduit --package=text --package=conduit-combinators --package=conduit --package=case-insensitive --package=aeson --package=zlib --package executable-path --package tar
2+
-- stack --install-ghc runghc --package=shake --package=extra --package=zip-archive --package=mime-types --package=http-types --package=http-conduit --package=text --package=conduit-combinators --package=conduit --package=case-insensitive --package=aeson --package=zlib --package tar
33
{-# OPTIONS_GHC -Wall -Werror #-}
44
{-# LANGUAGE RecordWildCards #-}
55

@@ -37,7 +37,6 @@ import Development.Shake.FilePath
3737
import Network.HTTP.Conduit
3838
import Network.HTTP.Types
3939
import Network.Mime
40-
import System.Environment.Executable
4140
import Prelude -- Silence AMP warning
4241

4342
-- | Entrypoint.
@@ -55,8 +54,10 @@ main =
5554
gGitRevCount <- length . lines <$> readProcess "git" ["rev-list", "HEAD"] ""
5655
gGitSha <- trim <$> readProcess "git" ["rev-parse", "HEAD"] ""
5756
gHomeDir <- getHomeDirectory
58-
RunGHC gScriptPath <- getScriptPath
59-
let gGpgKey = "9BEFB442"
57+
let -- @gScriptPath@ was retrived using the @executable-path@ package, but it
58+
-- has trouble with GHC 7.10.2 on OS X
59+
gScriptPath = "scripts/release/release.hs"
60+
gGpgKey = "9BEFB442"
6061
gAllowDirty = False
6162
gGithubReleaseTag = Nothing
6263
Platform arch _ = buildPlatform

0 commit comments

Comments
 (0)