diff --git a/ChangeLog.md b/ChangeLog.md index 6e9fe15352..1f478e06f9 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -13,6 +13,10 @@ Behavior changes: Other enhancements: +* Show warning about `local-programs-path` with spaces on windows + when running scripts. See + [#5013](https://github.com/commercialhaskell/stack/pull/5013) + * Add `ls dependencies json` which will print dependencies as JSON. `ls dependencies --tree` is now `ls dependencies tree`. See [#4424](https://github.com/commercialhaskell/stack/pull/4424) diff --git a/src/Stack/Config.hs b/src/Stack/Config.hs index ecf669cf51..cb241f11f2 100644 --- a/src/Stack/Config.hs +++ b/src/Stack/Config.hs @@ -281,12 +281,12 @@ configFromConfigMonoid shortLocalProgramsFilePath <- liftIO $ getShortPathName localProgramsFilePath when (' ' `elem` shortLocalProgramsFilePath) $ do - logWarn $ "Stack's 'programs' path contains a space character and " <> + logError $ "Stack's 'programs' path contains a space character and " <> "has no alternative short ('8 dot 3') name. This will cause " <> "problems with packages that use the GNU project's 'configure' " <> - "shell script. Use the 'local-programs-path' configuation option " <> - "to specify an alternative path. The current 'shortest' path is: " <> - display (T.pack shortLocalProgramsFilePath) + "shell script. Use the 'local-programs-path' configuration option " <> + "to specify an alternative path. The current path is: " <> + display (T.pack localProgramsFilePath) platformOnlyDir <- runReaderT platformOnlyRelDir (configPlatform, configPlatformVariant) let configLocalPrograms = configLocalProgramsBase platformOnlyDir