mirror of
https://github.com/haskell/haskell-language-server.git
synced 2024-09-20 05:07:28 +03:00
Fix install script stack targets
This way we avoid install executables from ghcide or other subpackages
This commit is contained in:
parent
35205ee3f9
commit
c2c7080923
@ -17,16 +17,17 @@ stackInstallHlsWithErrMsg mbVersionNumber args =
|
||||
-- | copy the built binaries into the localBinDir
|
||||
stackInstallHls :: Maybe VersionNumber -> [String] -> Action ()
|
||||
stackInstallHls mbVersionNumber args = do
|
||||
let args' = [ "install"
|
||||
, ":haskell-language-server-wrapper"
|
||||
, ":haskell-language-server"
|
||||
] ++ args
|
||||
versionNumber <-
|
||||
case mbVersionNumber of
|
||||
Nothing -> do
|
||||
execStackWithCfgFile_ "stack.yaml" $
|
||||
["install"
|
||||
, ":haskell-language-server-wrapper"
|
||||
, ":haskell-language-server"] ++ args
|
||||
execStackWithCfgFile_ "stack.yaml" args'
|
||||
getGhcVersionOfCfgFile "stack.yaml" args
|
||||
Just vn -> do
|
||||
execStackWithGhc_ vn $ ["install"] ++ args
|
||||
execStackWithGhc_ vn args'
|
||||
return vn
|
||||
|
||||
localBinDir <- getLocalBin args
|
||||
|
Loading…
Reference in New Issue
Block a user