@@ -61,15 +61,13 @@ import qualified Data.Yaml as Yaml
6161import Distribution.System (OS , Arch (.. ), Platform (.. ))
6262import qualified Distribution.System as Cabal
6363import Distribution.Text (simpleParse )
64- import Distribution.Version (mkVersion' )
6564import Lens.Micro (set )
6665import Network.HTTP.Simple (getResponseBody , httpLBS , withResponse , getResponseStatusCode )
6766import Network.HTTP.Download
6867import Path
6968import Path.CheckInstall (warnInstallSearchPathIssues )
7069import Path.Extra (toFilePathNoTrailingSep )
7170import Path.IO hiding (findExecutable , withSystemTempDir )
72- import qualified Paths_stack as Meta
7371import Prelude (getLine , putStr , putStrLn , until )
7472import Stack.Build (build )
7573import Stack.Config (loadConfig )
@@ -661,7 +659,7 @@ ensureDockerStackExe containerPlatform = do
661659 stackExeExists <- doesFileExist stackExePath
662660 unless stackExeExists $ do
663661 logInfo $ mconcat [" Downloading Docker-compatible " , T. pack stackProgName, " executable" ]
664- sri <- downloadStackReleaseInfo Nothing Nothing (Just (versionString stackVersion ))
662+ sri <- downloadStackReleaseInfo Nothing Nothing (Just (versionString stackMinorVersion ))
665663 platforms <- runReaderT preferredPlatforms (containerPlatform, PlatformVariantNone )
666664 downloadStackExe platforms sri stackExeDir False (const $ return () )
667665 return stackExePath
@@ -1983,6 +1981,3 @@ getDownloadVersion (StackReleaseInfo val) = do
19831981 String rawName <- HashMap. lookup " name" o
19841982 -- drop the "v" at the beginning of the name
19851983 parseVersion $ T. drop 1 rawName
1986-
1987- stackVersion :: Version
1988- stackVersion = fromCabalVersion (mkVersion' Meta. version)
0 commit comments