protoc --version: libprotoc 3.21.4, downloaded from github
language i am using: Go
steps to reproduce:
working path:
$ pwd
/c/User/Desktop/test/src
proto files in this path:
$ ls
blockchain_block.proto
blockchain_block_v1.proto
blockchain_txn.proto ......
protoc cmd i tried:
$ protoc --go_out=/c/User/Desktop/Helium/hnt/ ./blockchain_block.proto
$ protoc --proto_path=. --go_out=/c/User/Desktop/Helium/hnt/ ./blockchain_block.proto
$ protoc --proto_path=/c/User/Desktop/test/src --go_out=/c/User/Desktop/Helium/hnt/ /c/User/Desktop/test/src/blockchain_block.proto
protoc output:
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.
How do i fix this?