Skip to content

Commit

Permalink
2 files for build patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jongarner committed Jan 13, 2025
1 parent 587861a commit 28afa01
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 44 deletions.
41 changes: 0 additions & 41 deletions build.patch

This file was deleted.

3 changes: 2 additions & 1 deletion hack/build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ RUN ARCH=$(go env GOARCH) && \
chmod a+x /usr/include/google/protobuf && \
chmod a+r -R /usr/include/google && \
chmod +x /usr/bin/protoc
RUN go install google.golang.org/protobuf/cmd/[email protected]
RUN go install google.golang.org/protobuf/cmd/[email protected] \
&& go install google.golang.org/grpc/cmd/[email protected]

# get goreleaser
# goreleaser name template per arch is basically goarch except for amd64 and 386 https://github.com/goreleaser/goreleaser/blob/ec8819a95c5527fae65e5cb41673f5bbc3245fda/.goreleaser.yaml#L167C1-L173C42
Expand Down
13 changes: 11 additions & 2 deletions hack/update-2proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ HACK_DIR=$(dirname "${BASH_SOURCE}")
echo "Updating plugin proto"

echo protoc --version
protoc pkg/plugin/proto/*.proto pkg/plugin/proto/*/*/*.proto --go_out=plugins=grpc:pkg/plugin/generated/ --go_opt=module=github.com/vmware-tanzu/velero/pkg/plugin/generated -I pkg/plugin/proto/ -I /usr/include

#protoc pkg/plugin/proto/*.proto pkg/plugin/proto/*/*/*.proto --go_out=plugins=grpc:pkg/plugin/generated/ --go_opt=module=github.com/vmware-tanzu/velero/pkg/plugin/generated -I pkg/plugin/proto/ -I /usr/include
protoc \
-I pkg/plugin/proto/ \
-I /usr/include \
--go_out=pkg/plugin/generated/ \
--go_opt=module=github.com/vmware-tanzu/velero/pkg/plugin/generated \
--go-grpc_out=pkg/plugin/generated \
--go-grpc_opt=paths=source_relative \
--go-grpc_opt=require_unimplemented_servers=false \
$(find pkg/plugin/proto -name '*.proto')

echo "Updating plugin proto - done!"

0 comments on commit 28afa01

Please sign in to comment.