Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure to disable color in cargo output #14

Merged
merged 2 commits into from
Jan 15, 2024
Merged

Make sure to disable color in cargo output #14

merged 2 commits into from
Jan 15, 2024

Conversation

pavel-procopiuc
Copy link
Contributor

@pavel-procopiuc pavel-procopiuc commented Jan 15, 2024

This makes sure that cargo produces no color in its output, otherwise when CARGO_TERM_COLOR environment variable is set to always it messes up the version matching, e.g.:

TRACE cargo_liner::cargo                     > Search for "cargo-audit" got: "\u{1b}[1m\u{1b}[32mcargo-audit\u{1b}[0m = \"0.18.3\"    # Audit Cargo.lock for crates with security vulnerabilities\n... and 29 crates more (use --limit N to see more)\n"
ERROR cargo_liner                            > No regex capture while parsing search output for "cargo-audit": does the package exist?

I have also added it for config get subcommand just in case.

Additionally I have taken a liberty to downgrade the MSRV because the previous version (1.70.0) works just fine and the newest rust requirement introduces some problems into our CI.

@PaulDance
Copy link
Owner

Hi!

Thanks for working on this! Indeed, it seems reasonable.

Just letting you know that I will make a proper review in a few moments. In the meantime, maybe rebase to sign your commits, please?

Cheers,
Paul.

@pavel-procopiuc
Copy link
Contributor Author

Thank you for the quick reaction! I have signed the commits.

Copy link
Owner

@PaulDance PaulDance left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@PaulDance PaulDance merged commit 5ebaf05 into PaulDance:master Jan 15, 2024
1 check passed
@pavel-procopiuc
Copy link
Contributor Author

Thanks a lot for! We would really appreciate it if you released the new crates.io version with this fix.

@PaulDance
Copy link
Owner

Yes, planning to do so sometime during this week.

@PaulDance
Copy link
Owner

Released as part of v0.4.3.

PaulDance added a commit that referenced this pull request Feb 3, 2024
Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
@PaulDance PaulDance added this to the v0.4.3 milestone Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants