Skip to content

build: add tools to (re)generate protobuf files after modification#233

Merged
mergify[bot] merged 4 commits into
csi-addons:mainfrom
nixpanic:build/protobuf
Sep 12, 2022
Merged

build: add tools to (re)generate protobuf files after modification#233
mergify[bot] merged 4 commits into
csi-addons:mainfrom
nixpanic:build/protobuf

Conversation

@nixpanic

@nixpanic nixpanic commented Sep 9, 2022

Copy link
Copy Markdown
Member

The internal/proto package contains raw .proto files that are the input for the related *.pb.go files. It seems the .go files were generated manually, and checked into the repository. This is not ideal, as manual changes to those files will likely go unnoticed.

By adding a internal/proto/generate.go file that only contains go:generate build-tags, the .proto files can be regenerated on-demand. A new make generate-protobuf target has been added that builds the required protoc-plugins before generating the *.pb.go files.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
Signed-off-by: Niels de Vos <ndevos@redhat.com>
@mergify mergify Bot added the vendor Pull requests that update vendored dependencies label Sep 9, 2022
@nixpanic nixpanic force-pushed the build/protobuf branch 3 times, most recently from 860c9e9 to 1450879 Compare September 9, 2022 09:36
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Signed-off-by: Niels de Vos <ndevos@redhat.com>
@mergify mergify Bot merged commit 777db4a into csi-addons:main Sep 12, 2022
Madhu-1 pushed a commit to Madhu-1/kubernetes-csi-addons that referenced this pull request Nov 27, 2024
Syncing latest changes from main for kubernetes-csi-addons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vendor Pull requests that update vendored dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants