Rattler-build with --log-style plain prints raw ANSI colour codes
rattler-build is great, and I am actively trying to transition all of my conda workflows to it, thanks for supporting it!
One minor issue I have seen is that the `--log-style plain` option, which I prefer to make copy/paste easier for job snippets, seems to disable interpretation of ANSI colour sequences, or escapes them, or something.
For example, building [this feedstock](https://github.com/conda-forge/ldas-tools-ldasgen-feedstock/pull/22) locally via `rattler-build build --log-style plain --recipe recipe -m .ci_support/linux_64_.yaml` returns the following output block (the last block in the long output):
```text
Run dependencies:
╭────────────────────┬──────────────────────────────────────────────────╮
│ Name ┆ Spec │
╞════════════════════╪══════════════════════════════════════════════════╡
│\x1b[1m Run dependencies \x1b[0m┆ │
│ __glibc ┆ >=2.17,<3.0.a0 (RE of [build: sysroot_linux-64]) │
│ ldas-tools-al ┆ >=2.8.0,<2.9.0a0 (RE of [host: ldas-tools-al]) │
│ libgcc ┆ >=14 (RE of [build: gxx_linux-64]) │
│ libstdcxx ┆ >=14 (RE of [build: gxx_linux-64]) │
│ ┆ │
│\x1b[1m Run exports (Weak) \x1b[0m┆ │
│ ldas-tools-ldasgen ┆ >=2.7.5,<2.8.0a0 │
╰────────────────────┴──────────────────────────────────────────────────╯
```
I am happy to be told this is 'user error' or that my shell is misconfigured, or that I have misinterpreted what 'plain' is supposed to be, but it would be great to have the ANSI codes interpreted or removed.
0 条评论