Skip to content

CODEGEN-793 - Treat line endings same when using --check flag #10340

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eddeee888
Copy link
Collaborator

Description

We want seamless experience for users of all OS. --check flag currently doesn't work for Windows users when something saves the generated file.

This PR treats line endings the same by converting them both back to Linux style when comparing for hash values.

Related #10309

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Unit test

Copy link

changeset-bot bot commented Apr 14, 2025

🦋 Changeset detected

Latest commit: 2cacfbb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@graphql-codegen/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@eddeee888 eddeee888 changed the title CODEGEN-793 - Treat line endings same when using check flag CODEGEN-793 - Treat line endings same when using --check flag Apr 14, 2025
Copy link
Contributor

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-codegen/cli 5.0.6-alpha-20250414132312-2cacfbb956012f0df94008f4636b6c03ccca15b4 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-operations 4.6.1-alpha-20250414132312-2cacfbb956012f0df94008f4636b6c03ccca15b4 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-resolvers 4.5.1-alpha-20250414132312-2cacfbb956012f0df94008f4636b6c03ccca15b4 npm ↗︎ unpkg ↗︎
@graphql-codegen/client-preset 4.8.1-alpha-20250414132312-2cacfbb956012f0df94008f4636b6c03ccca15b4 npm ↗︎ unpkg ↗︎

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.

1 participant