mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-11 10:37:28 +01:00
Require yesod-gitrepo 0.1.1
This commit is contained in:
parent
829b107eb9
commit
d50a6181f5
@ -170,7 +170,6 @@ makeFoundation useEcho conf = do
|
|||||||
let haddockRootDir' = "/tmp/stackage-server-haddocks2"
|
let haddockRootDir' = "/tmp/stackage-server-haddocks2"
|
||||||
widgetCache' <- newIORef mempty
|
widgetCache' <- newIORef mempty
|
||||||
|
|
||||||
#if MIN_VERSION_yesod_gitrepo(0,1,1)
|
|
||||||
websiteContent' <- if development
|
websiteContent' <- if development
|
||||||
then do
|
then do
|
||||||
void $ rawSystem "git"
|
void $ rawSystem "git"
|
||||||
@ -182,23 +181,6 @@ makeFoundation useEcho conf = do
|
|||||||
"https://github.com/fpco/stackage-content.git"
|
"https://github.com/fpco/stackage-content.git"
|
||||||
"master"
|
"master"
|
||||||
loadWebsiteContent
|
loadWebsiteContent
|
||||||
#else
|
|
||||||
websiteContent' <- if development
|
|
||||||
then do
|
|
||||||
void $ rawSystem "git"
|
|
||||||
[ "clone"
|
|
||||||
, "https://github.com/fpco/stackage-content.git"
|
|
||||||
]
|
|
||||||
tmp <- gitRepo "stackage-content" "master" loadWebsiteContent
|
|
||||||
return tmp
|
|
||||||
{ grRefresh = return ()
|
|
||||||
, grContent = loadWebsiteContent "stackage-content"
|
|
||||||
}
|
|
||||||
else gitRepo
|
|
||||||
"https://github.com/fpco/stackage-content.git"
|
|
||||||
"master"
|
|
||||||
loadWebsiteContent
|
|
||||||
#endif
|
|
||||||
|
|
||||||
env <- getEnvironment
|
env <- getEnvironment
|
||||||
|
|
||||||
|
|||||||
@ -154,7 +154,7 @@ library
|
|||||||
, formatting
|
, formatting
|
||||||
, blaze-html
|
, blaze-html
|
||||||
, haddock-library
|
, haddock-library
|
||||||
, yesod-gitrepo
|
, yesod-gitrepo >= 0.1.1
|
||||||
, hoogle
|
, hoogle
|
||||||
, spoon
|
, spoon
|
||||||
, deepseq
|
, deepseq
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user