-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mention the proper env vars for usage in MinGW #404
Conversation
FAQ recommends setting It would be better to add the instruction to the error message for failed parse instead of repeating it after each failed test. |
I was unable to make it work with And I agree it would be better to do it in the parse error message. Good point, will do. |
|
As the error in parsing is created by class Typeable v => IsOption v where
-- | Optional additional hints to present on the CLI when this option
-- fails to parse, for example OS specific hints.
additionalHints :: Tagged v (Maybe String) ? |
Maybe we can unmangle automatically what MSYS has mangled? That would be the best solution. |
I don't think that would be a good approach, I think tasty should try to interpret the input as a pattern always, and fail if it is not a pattern. At most the slashes could be optional maybe? That would avoid MSYS2 mangling the parameter. (The above is my current opinion, I don't know the internals of tasty or the overall design and goals so I could be wrong) |
There are two low-hanging fruits: we can update |
I found why the env var does not work. It is specific to the MSYS2 fork of Git for Windows git-for-windows/msys2-runtime@f874ac108a and doesn't apply when one installs MinGW directly instead of via Git for Windows. |
Let's just update the README and let it be. |
Let me know if this looks good now. |
Thanks! |
If one doesn't set that flag, by default any argument
/.../
gets converted to a path by MSYS2 (see).This will print the following advise on failing tests when running on what looks like a MinGW enviroment:
It still uses the "If" formulation because PowerShell running the mingw haskell toolchain won't need this parameter (modulo haskell/cabal#9519):