-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: add make docker-generate-protobuf
to update genedated *.pb.go
files
#372
Conversation
Makefile
Outdated
buildah bud -f $^ -t ${TOOLS_IMG} . | ||
podman run --rm -ti --volume=${PWD}:/go/src/github.com/csi-addons/kubernetes-csi-addons:Z ${TOOLS_IMG} make generate-protobuf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all systems will have buildah and podman and we use docker in most places in this Makefile to run commands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but Docker is not part of recent Fedora installations anymore, so I only have buildah/podman. I could change it to podman
only, and add detection for podman
, with a fallback ro docker
if you prefer that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i that would be a good option as some developers might also not use Fedora.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, please have a look again.
534b351
to
7d1a2aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…go` files It seems that not all developers use an updated version of Fedora. For the contributors that need to update `*.proto` files and re-generate the related `*.pb.go` files, the new `make docker-generate-protobuf` command will be very useful. This includes detection for Podman or Docker in the `Makefile`, so that developers can use euther (Podman recommended!). Signed-off-by: Niels de Vos <[email protected]>
7d1a2aa
to
4470989
Compare
With recent changes to detect Podman/Docker, the `docker-generate-protobuf` make target was broken. The parameters to the container build command were passed like `$^`, and not only the Containerfile filename. Fixes: csi-addons#372 Signed-off-by: Niels de Vos <[email protected]>
With recent changes to detect Podman/Docker, the `docker-generate-protobuf` make target was broken. The parameters to the container build command were passed like `$^`, and not only the Containerfile filename. Fixes: #372 Signed-off-by: Niels de Vos <[email protected]>
It seems that not all developers use an updated version of Fedora. For the contributors that need to update
*.proto
files and re-generate the related*.pb.go
files, the newmake docker-generate-protobuf
command will be very useful.