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

Colored output does not work correctly in Gitlab pipeline jobs #1106

Closed
berni2288 opened this issue Sep 11, 2024 · 1 comment · Fixed by #1125
Closed

Colored output does not work correctly in Gitlab pipeline jobs #1106

berni2288 opened this issue Sep 11, 2024 · 1 comment · Fixed by #1125

Comments

@berni2288
Copy link

When running pint inside a Gitlab pipeline job, it seems a lot of messages are not colored:

image

But it's interesting that the end results contain some colored text.

I've tried to force color output with a lot of env variables like TERM=xterm-256color and others, but it didn't help.

According to issue 179 from faith/color, in order to force color output in a non-tty environment, the application needs to use the following code:

color.NoColor = false

But I didn't find this in pint, can forcing colors be implemented?
Without colors, finding actual bugs/fatal errors in the output is very hard.
Thanks!

@berni2288
Copy link
Author

Hey @prymitive, thanks for your attempt to fix it.
Should we reopen this ticket since this was reverted?

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 a pull request may close this issue.

1 participant