Skip to content

Conversation

@emcfarlane
Copy link
Contributor

This disables format on files that contain an error. Replicates the check in the LSP. With a file given an unsupported edition this will now fail avoiding stripping/corrupting the unknown syntax.

$ buf format
Failure: local.proto:1:11: edition "2024" not yet fully supported; latest supported edition "2023"

@emcfarlane emcfarlane requested a review from doriable November 14, 2025 19:27
@github-actions
Copy link
Contributor

github-actions bot commented Nov 14, 2025

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedNov 20, 2025, 9:19 PM

@emcfarlane
Copy link
Contributor Author

@doriable if this change looks fine. Can go through and remove/correct the failing testcases and add a changelog.

@doriable
Copy link
Member

Yeah, this looks like a reasonable fix for the current formatter, thank you!

@emcfarlane emcfarlane merged commit dd9da3b into main Nov 20, 2025
10 checks passed
@emcfarlane emcfarlane deleted the ed/disableFmtUnknownSyntax branch November 20, 2025 23:48
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.

3 participants