Skip to content

revert the change to not generate empty enum files #1016

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 2 commits into from
May 30, 2025

Conversation

devoncarew
Copy link
Collaborator

Revert the change to not generate empty enum files (partial revert of #1006). Some enum files export other enums files, and we don't have any easy way to determine whether the file we're exporting was not generated.

@devoncarew devoncarew requested a review from osa1 May 30, 2025 15:56
Copy link
Member

@osa1 osa1 left a comment

Choose a reason for hiding this comment

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

It would be good to have a regression test so that we won't break this again.

@devoncarew
Copy link
Collaborator Author

It would be good to have a regression test so that we won't break this again.

For sure; I updated google/protobuf/unittest_import.proto to the latest from upstream; it now has a 'public import' of google/protobuf/unittest_import_public.proto (also added). This would have generated a broken export reference before this fix; the enum file for unittest_import would have had an export for the enum file for unittest_import_public; that would not have been generated as it's empty.

@devoncarew devoncarew merged commit c69077d into google:master May 30, 2025
16 checks passed
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Jun 2, 2025
Revisions updated by `dart tools/rev_sdk_deps.dart`.

ecosystem (https://github.com/dart-lang/ecosystem/compare/815d4ba..8cebaf0):
  8cebaf0  2025-05-28  Kevin Moore  team lints: update to latest pkg:lints (dart-lang/ecosystem#359)

protobuf (https://github.com/dart-lang/protobuf/compare/d940c8d..c69077d):
  c69077d  2025-05-30  Devon Carew  revert the change to not generate empty enum files (google/protobuf.dart#1016)
  08e7410  2025-05-29  Devon Carew  ignore unused_imports for json files (google/protobuf.dart#1013)
  efdabd7  2025-05-29  Devon Carew  update how we calculate import prefixes (google/protobuf.dart#1012)
  60dfaed  2025-05-28  Devon Carew  rev package:protoc_plugin to 22.3.0 (google/protobuf.dart#1011)
  86dfa6b  2025-05-27  Devon Carew  move generated test code from out/ to test/gen/ (google/protobuf.dart#1009)

test (https://github.com/dart-lang/test/compare/42a6d33..e2ddae9):
  e2ddae9f  2025-06-01  dependabot[bot]  Bump the github-actions group with 2 updates (dart-lang/test#2506)

tools (https://github.com/dart-lang/tools/compare/a0dda7e..04c6849):
  04c68495  2025-06-01  dependabot[bot]  Bump actions/setup-node from 3 to 4 in the github-actions group (dart-lang/tools#2106)

webdev (https://github.com/dart-lang/webdev/compare/5dbb30e..64492b2):
  64492b2d  2025-05-27  Nate Biggs  Fix e2e 'evaluate' test to use new Closure toString format. (dart-lang/webdev#2624)

webdriver (https://github.com/google/webdriver.dart/compare/f52afbf..b8f511d):
  b8f511d  2025-06-02  dependabot[bot]  Bump nanasess/setup-chromedriver (google/webdriver.dart#329)

Change-Id: If832327efab4615677528599ac51cecf4bb09fdf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/432362
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
Auto-Submit: Devon Carew <[email protected]>
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