Actually update HIE submodules when checking out the git version..

Damn git submodules
This commit is contained in:
Silvan Mosberger 2019-06-20 14:59:08 +02:00
parent 66ff11a117
commit 853dd3ad96
No known key found for this signature in database
GPG Key ID: 9424360B4B85C9E7

View File

@ -208,6 +208,7 @@ regenerate root revision = do
liftIO $ putStrLn $ "Writing " ++ revName ++ " to " ++ root ++ "stack2nix/revision"
liftIO $ writeFile (root </> "stack2nix/revision") revName
git hie [ "checkout", hash ]
git hie [ "submodule", "update", "--recursive" ]
files <- repoPath hie >>= liftIO . listDirectory
let versions = mapMaybe (stackPathRegex `match`) files
liftIO $ putStrLn $ "HIE " ++ revName ++ " has ghc versions " ++ intercalate ", " (map show versions)