fatih / color

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

Panic when used on go 1.17 #147

Closed alekc closed 2 years ago

alekc commented 2 years ago

Hi, while using a terraform provider which list this project as one of it's dependencies I got a panic on the start of the process. After some digging turns out it's related to github.com/mattn/go-isatty v0.0.14

Dependabot has already bumped the version here but until there is a release it won't be fetched by the upstream.

Can you have a look?

fatih commented 2 years ago

Hi @alekc

Can you show me the panic output please? Or a sample example that makes fatih/color panic?

Thank you

alekc commented 2 years ago

Probably better if I link directly the related PR https://github.com/mattn/go-isatty/pull/66 , also https://github.com/golang/go/issues/46645

fatih commented 2 years ago

Thank you @alekc I'll take a look at it.

fatih commented 2 years ago

It looks like go-isatty was already updated in go.mod, but I never released a new version.

I just released a new version, v1.13.0, which now includes the latest updates.