Skip to content

Enable CARGO_TERM_COLOR automatically in GitLab CI #16969

@TheJanzap

Description

@TheJanzap

Problem

I would like to have automatic colored output from Cargo in GitLab CI. Currently, I have to manually set CARGO_TERM_COLOR: always in my CI config to enable it. This would be a nice convenience feature to have.

Proposed Solution

Detect if Cargo is running in GitLab CI/CD and enable colored output.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-console-outputArea: Terminal output, colors, progress bar, etc.C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions