hedera-sdk-java icon indicating copy to clipboard operation
hedera-sdk-java copied to clipboard

Build fail after updating protobufs

Open thenswan opened this issue 1 year ago • 0 comments

Description

Gradle build fails with an error below after updating protobufs (it started to happen after this commit).

> Task :sdk:generateProto FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sdk:generateProto'.
> protoc: stdout: . stderr: state/common.proto: File not found.
  account.proto:25:1: Import "state/common.proto" was not found or had errors.

It is possible to fix this issue ad hoc by doing an extra step: updating protobuf imports in the processed protobufs under sdk/src/main/proto — need to remove state/ in order to import protobufs from the same folder.

Steps to reproduce

  1. Update protobufs by running task update:proto or ./scripts/update_protobufs.py main.
  2. Build the project by running ./gradlew assemble.

Additional context

No response

Hedera network

other

Version

v2.30.0

Operating system

None

thenswan avatar Mar 08 '24 13:03 thenswan