Skip to content

Update dependency env_logger from 0.6 to 0.10.2 #521

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

Merged
merged 6 commits into from
Feb 11, 2025

Conversation

jimmystewpot
Copy link
Contributor

The env_logger API has changed in recent revisions, bringing up the dependency to a more recent version to make the codebase easier to maintain in the long term.

A test that defaults to ignored has been left to test any future API changes if required; I have left it there just for simple iterative testing, although it could be removed as it's trivial. Otherwise, this shouldn't break anything.

Copy link
Member

@tomhoule tomhoule left a comment

Choose a reason for hiding this comment

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

very nice, thanks for the PR!

@tomhoule
Copy link
Member

Ci is failing with


the package `graphql_client_cli` depends on `env_logger`, with features: `anstream` but `env_logger` does not have these features.
 It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.


I don't have the bandwidth to check right now, but it should be straightforward to fix.

…inimum rust version to 1.71. This conflicts with graphql-client's minimum of 1.64
@jimmystewpot jimmystewpot changed the title Update dependency env_logger from 0.6 to 0.11.x Update dependency env_logger from 0.6 to 0.10.2 Feb 10, 2025
@jimmystewpot
Copy link
Contributor Author

@tomhoule, thanks for looking at this pr so quickly. I have not been checking the MSRV information on packages, so this one slipped through the net.

The problem with CI is caused by the minimum version for graphql-client 1.64 vs. a style (via env_logger), which is 1.71. I reverted the env_logger to 0.10.2, which is the last version that supports 1.64. I started working on this update to make cross-platform terminal colours less buggy. I've now reverted the code back to pre-change and left only the dependency update in place (to 0.10.2)

Should the minimum version of rust supported by graphql-client by bumped to something more recent? (This is a supplementary question)

In Summary, the version has gone from 0.6 to 0.10.2 for env_logger; I've updated the subject/title of the PR to reflect the difference. I've also removed the tests.

@tomhoule
Copy link
Member

Should the minimum version of rust supported by graphql-client by bumped to something more recent? (This is a supplementary question)

Absolutely. I'm going to cut a release very soon, and we can make a few breaking changes, including bumping the MSRV right after that.

@tomhoule tomhoule merged commit 08578c0 into graphql-rust:main Feb 11, 2025
11 checks passed
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