Repository navigation
Make stack path output independent of logging. (Issue #604) - #615
Merged
Merged
Conversation
…kell#604) E.g. $ (export STACK_YAML=stack.yaml && stack path --local-install-root) Getting project config file from STACK_YAML environment /home/conathan/Desktop/mirrored/stack-fix/stack.git/.stack-work/install/x86_64-linux/lts-2.17/7.8.4 $ (export STACK_YAML=stack.yaml && stack --verbosity silent path --local-install-root) /home/conathan/Desktop/mirrored/stack-fix/stack.git/.stack-work/install/x86_64-linux/lts-2.17/7.8.4 but I still think it's a good idea to also send log messages to stderr.
…lhaskell#446) This is probably controversial. My motivation is that output from commands like `stack path --local-install-root` should be consumable by scripts, and so shouldn't be cluttered with unpredictable log messages. There is probably some good reason that non-error/warning log output was still going to stdout in 4460c36, but it's not explained in
Contributor
|
Looks good so far! Only issue is that this will break |
Contributor
Author
|
@mgsloan: I added the |
Contributor
|
@ntc2: Thanks, looks good to me! |
mgsloan
added a commit
that referenced
this pull request
Jul 17, 2015
Make `stack path` output independent of logging. (Issue #604)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
E.g.
but I still think it's a good idea to also send log messages to stderr.