[Nix#9486] nix always outputs terminal colour codes regardless of what is on the other end or NO_COLOR #94

Open
opened 2024-03-16 06:44:52 +00:00 by lix-bot · 0 comments
Member

Upstream-Issue: NixOS/nix#9486

Describe the bug

nix flake show does not respect NO_COLOR.

Steps To Reproduce

  1. Run NO_COLOR=true nix flake show
  2. Observe colored output.

Expected behavior

Output should not contain any ANSI color/formatting sequences.

nix-env --version output

nix-env (Nix) 2.17.0

Additional context

Other commands do support NO_COLOR=true.

Upstream-Issue: https://git.lix.systems/NixOS/nix/issues/9486 **Describe the bug** `nix flake show` does not respect `NO_COLOR`. **Steps To Reproduce** 1. Run `NO_COLOR=true nix flake show` 2. Observe colored output. **Expected behavior** Output should not contain any ANSI color/formatting sequences. **`nix-env --version` output** nix-env (Nix) 2.17.0 **Additional context** Other commands do support `NO_COLOR=true`.
lix-bot added the
bug
imported
labels 2024-03-16 06:44:52 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#94
No description provided.