Skip to content

repl: fix NO_COLORS env var is ignored - #51568

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
MoLow:fix-no-colors
Jan 31, 2024
Merged

repl: fix NO_COLORS env var is ignored#51568
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
MoLow:fix-no-colors

Conversation

@MoLow

Copy link
Copy Markdown
Member

refs: #48034 (comment)

the logic in options.useColors = shouldColorize(options.output) || process.env.NODE_DISABLE_COLORS === undefined; indroduced this bug since shouldColorize already checks NODE_DISABLE_COLORS among other env vars that disable colors: NO_COLOR and TERM === 'dumb'

@MoLow
MoLow requested a review from addaleaxJanuary 26, 2024 08:39
@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. repl Issues and PRs related to the REPL subsystem. labels Jan 26, 2024
Comment threadtest/parallel/test-repl-options.js
@MoLowMoLow added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 26, 2024
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 26, 2024
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@addaleaxaddaleax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@anonrig

Copy link
Copy Markdown
Member

Can we add a test, so we don't regress?

@MoLow

Copy link
Copy Markdown
MemberAuthor

Can we add a test, so we don't regress?

there were already existing tests that needed fixing

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@MoLowMoLow added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Jan 31, 2024
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 31, 2024
@nodejs-github-bot
nodejs-github-bot merged commit a501315 into nodejs:mainJan 31, 2024
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in a501315

@MoLow
MoLow deleted the fix-no-colors branch January 31, 2024 08:35
rdw-msft pushed a commit to rdw-msft/node that referenced this pull request Feb 9, 2024
PR-URL: nodejs#51568
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
targos pushed a commit that referenced this pull request Feb 15, 2024
PR-URL: #51568
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@marco-ippolitomarco-ippolito mentioned this pull request Mar 1, 2024
richardlau pushed a commit that referenced this pull request Mar 25, 2024
PR-URL: #51568
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@richardlaurichardlau mentioned this pull request Mar 25, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.needs-ciPRs that need a full CI run.replIssues and PRs related to the REPL subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@MoLow@nodejs-github-bot@anonrig@addaleax@benjamingr@lpinca@BridgeAR