Follow the next steps in order to generate the final code interfaces from the protobuf definitions.
-
Install asdf and add all the needed plugins:
asdf plugin add elixir
asdf plugin add erlang
asdf plugin add golang
asdf plugin add protoc
asdf plugin add protoc-gen-go-
Define
golangversion toasdfto enableprotoc-gen-gousage. For that, edit$HOME/.asdf/.tool-versionsand append the next line:
golang 1.18.1-
Install the required tool versions running:
asdf install-
Install and configure
protoc-gen-elixirrunning:
mix escript.install hex protobuf
asdf reshimOnce all the tools are installed, run the next command to update the final code interfaces:
makeIn order to make the last command work, protoc-gen-go and
protoc-gen-elixir must be available in your PATH system variable
(they are if they are installed using the previously explained asdf
option).