-
Notifications
You must be signed in to change notification settings - Fork 207
Conversation
jneira
commented
Nov 6, 2019
- If it is not set the fix makes no sense
- Fixes stack ./install.hs stack-install-cabal failed #1436
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe adding a log message may be interesting.
In #1436 (comment) it is said that the path is set. Maybe dont merge this until it is clear why this issue arises? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is catching an exception the best way to detect if the environment variable is set? This seems a bit hacky to me, but I have no experience with the System.Environment
module
Sure, but i think the actual code does what i expected in the first place (return
It was a surprise to me that The docs for
...and |
then the patch makes sense. Maybe we should only catch exceptions that satisfy the predicate |
@jneira Merge when you are ready! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks great! Thank you!