blockchain_block_v1 is not defined
- Dominant language
- Rust
- Stars
- 23
- Forks
- 28
- Avg merge
- 3d 19h
- Merged PRs (30d)
- 2
Description
I'm tring to generate the pb file for my golang project, but every time i execute the `protoc` command i got some error.
the protoc command:
```
protoc -I=/c/User/Desktop/test/src/ --go_out=/c/User/Desktop/Helium/hnt/ /c/User/Desktop/test/src/blockchain_block.proto
```
output i got:
```
blockchain_block_v1.proto:21:12: "blockchain_txn" is not defined.
blockchain_block.proto:4:1: Import "blockchain_block_v1.proto" was not found or had errors.
blockchain_block.proto:7:17: "blockchain_block_v1" is not defined.
```
Can someone tell me how to fix this?
By the way i added `option go_package = "./proto";` for every porot file, so it's probably not a go-generate problem
Contributor guide
Research direction
Start with blockchain_block.proto and its imported blockchain_block_v1.proto, then run the reported protoc command to inspect how the import and referenced declarations are resolved. Done means protoc resolves the import and generates the Go pb files without the reported undefined-symbol errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100