-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add .NET 6.0 env variable for color output #2113
Conversation
See dotnet/runtime#47935 for details, basically enables color output even though console output is redirected for a better time in GitHub actions.
Relevant: created an issue on |
@Tyrrrz so....I can't get it to work at all, maybe I'm holding it wrong? It'd only work on Unix either way but...yeah, it doesn't seem to do anything here. There's something else in play I guess but don't want to spend a day figuring it out. This is way, way harder than it should be though. |
Hmm, I tested it locally with @0xced sorry for tagging you, do you know what could be wrong? Update: apparently it's not supposed to work on Windows, where I was testing it. I tested it on Linux too and it works there when redirected to a file -- so the issue is probably on the GitHub Actions side somehow? |
FYI: I created a simple repro, in case you can forward it to relevant people And started a discussion: dotnet/runtime#68302 |
This issue came up in dotnet/command-line-api#1710. I thought it was something that was needed in |
I'm definitely able to get dotnet CLI to output color codes but not on GitHub Actions. |
@am11 provided a fix here: dotnet/runtime#68302 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should work @NickCraver
Update `TERM` Co-authored-by: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com>
Thanks both! I opened an issue to see if we can get this working in Windows as well: dotnet/runtime#68340 |
See dotnet/runtime#47935 for details, basically enables color output even though console output is redirected for a better time in GitHub actions.