fatih / color

Color package for Go (golang)
https://pkg.go.dev/github.com/fatih/color
MIT License
7.26k stars 615 forks source link

Doesn't work in test files with go 1.8 beta #48

Closed akyoto closed 7 years ago

akyoto commented 7 years ago

Please see https://github.com/golang/go/issues/18153. Only go test is affected.

fatih commented 7 years ago

You're right. You have to explicitly set color.NoColor = false so that it works. I've made a comment there: https://github.com/golang/go/issues/18153#issuecomment-264388969 I'm not sure what the underlying change is. I want to first understand it before I try to fix it here or if it's an issue at https://github.com/mattn/go-isatty (@mattn)

fatih commented 7 years ago

This is now fixed in go tip. Thanks @blitzprog for the feedback again.