@@ -186,7 +186,7 @@ reexecWithOptionalContainer mprojectRoot =
186186 exePath <- ensureDockerStackExe dockerContainerPlatform
187187 cmdArgs args (toFilePath exePath)
188188 cmdArgs args exePath = do
189- let mountPath = toFilePath hostBinDir FP. </> FP. takeBaseName exePath
189+ let mountPath = hostBinDir FP. </> FP. takeBaseName exePath
190190 return (mountPath, args, [] , [Mount exePath mountPath])
191191
192192-- | If Docker is enabled, re-runs the OS command returned by the second argument in a
@@ -294,8 +294,9 @@ runContainerAndExit getCmdArgs
294294 -- This is fixed in Docker 1.9.1, but will leave the workaround
295295 -- in place for now, for users who haven't upgraded yet.
296296 (isTerm || (isNothing bamboo && isNothing jenkins))
297+ hostBinDirPath <- parseAbsDir hostBinDir
297298 newPathEnv <- augmentPath
298- [ hostBinDir
299+ [ hostBinDirPath
299300 , sandboxHomeDir </> $ (mkRelDir " .local/bin" )]
300301 (T. pack <$> lookupImageEnv " PATH" imageEnvVars)
301302 (cmnd,args,envVars,extraMount) <- getCmdArgs docker envOverride imageInfo isRemoteDocker
@@ -858,8 +859,8 @@ homeDirName :: Path Rel Dir
858859homeDirName = $ (mkRelDir " _home/" )
859860
860861-- | Directory where 'stack' executable is bind-mounted in Docker container
861- hostBinDir :: Path Abs Dir
862- hostBinDir = $ (mkAbsDir " /opt/host/bin" )
862+ hostBinDir :: FilePath
863+ hostBinDir = " /opt/host/bin"
863864
864865-- | Convenience function to decode ByteString to String.
865866decodeUtf8 :: BS. ByteString -> String
0 commit comments