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

fix: properly generate code and pass tests when protobuf message definition is empty #131

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

nickpoorman
Copy link
Contributor

Description:
Without this fix, when an empty protobuf definition is supplied, the generator and tests fail.

Related issue(s):

Fixes #130

Notes for reviewer:
Add an empty protobuf message to the hedera-protobufs repo, or change settings.gradle.kts to use

    uri.set("https://github.com/nickpoorman/hedera-protobufs.git")
    // choose tag or branch of HAPI you would like to test with
    tag.set("block-node")

and run the build task on pbj-integration-tests.

See it done here: 5091ab9#diff-33c26aa8d64828ee0a21e949f86378b4702433336009b2a6575795e6416d7d29R26

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

…nition is empty

Signed-off-by: Nick Poorman <nick@swirldslabs.com>
Signed-off-by: Nick Poorman <nick@swirldslabs.com>
@imalygin imalygin merged commit 2c44dc3 into hashgraph:main Dec 1, 2023
3 of 4 checks passed
@jsync-swirlds
Copy link
Member

An empty message definition is not a valid input. Why do we want to try to support that?

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.

Generator errors when empty protobuf message definition is encountered
3 participants