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

Use correct language version for formatter #792

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

simolus3
Copy link
Contributor

Mockito used to always pass the latest language version supported by dart_style. For projects not on that language version, this can cause a divergence between the formatting style expected in those projects and the one chosen by mockito. That is generally quite annoying, because users expect generated code to comply with their formatting standards (and having to run dart format after build_runner build immediately invalidates the build).

This fixes the issue by passing the actual language version of the package we're generating code for instead.

This is currently breaking my pipelines in projects using mockito, it would be amazing if this could be released soon. Please let me know if there's anything more I can do to help.

Copy link
Member

@srawlins srawlins left a comment

Choose a reason for hiding this comment

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

Looks perfect, thanks!

@srawlins srawlins merged commit d358e24 into dart-lang:master Dec 19, 2024
9 checks passed
@simolus3 simolus3 deleted the fix-formatter-language-version branch December 19, 2024 16:06
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