Run go build
or better go install
in any /cmd
subdirectory to install an executable needed to run the scripts.
- Install protoc (v3.19.2), e.g. using
scoop install protobuf
- Install protoc-gen-go (v1.27.1), e.g. using
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
Compilation of proto files can be done using the following command relative to one of the submodules:
protoc --proto_path=./api/pb --go_out=./api/pb --go_opt=paths=source_relative ./api/pb/*.proto
- Install Go plugin
- Ensure Go modules integration is enabled in
File | Settings | Languages & Frameworks | Go | Go Modules
- Add proto files to import path in
File | Settings | Languages & Frameworks | Protocol Buffers
- e.g.
C:/Users/Arthur/git/vaa-uebung/ueb01/api/pb
- e.g.