Skip to content
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

Fix color leakage #10

Merged
merged 6 commits into from
Jun 5, 2020
Merged

Conversation

subtlepseudonym
Copy link
Contributor

Output that isn't prepended with a status like "ok" or "FAIL" is being colorized.

For example, if the line "ok github.com/some/package" is followed by "some/package/file.go:20:10 there was an error", the second line will be colored green. This is confusing, because the second line is likely error output belonging to the subsequent test.

This fix will reset the color palette after colorizing status-related output.

This PR is a revision of a previous PR.

subtlepseudonym and others added 3 commits October 24, 2018 15:52
Only colorizing output that indicates test result status. This includes
"ok", "PASS", etc. The fix prevents that coloration from remaining set
and colorizing error and logging output that doesn't directly indicate
whether a test passed or failed. For example, a line like
"some/package/file.go:20:10: something went wrong" won't be colorized.
This reverts commit f35ce18.

Omitting or including the vendor directory is up to the maintainer and
outside the scope of this change
@subtlepseudonym
Copy link
Contributor Author

I've reverted the out-of-scope removal of the vendor directory and updated this with the latest upstream master. This should be ready for a final review / merge.

This was bundled into the color leakage fix commit, but it is out of
scope for these changes
@rakyll rakyll merged commit cffa99d into rakyll:master Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants