Skip to content

Commit

Permalink
add missing google proto files
Browse files Browse the repository at this point in the history
  • Loading branch information
glimchb committed Nov 3, 2022
1 parent f781cfa commit cda3f46
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions storage/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (c) 2022 Dell Inc, or its subsidiaries.

all:
rm -rf ./v1/{autogen.md,gen}
rm -rf ./v1/{autogen.md,gen,google}
mkdir -p ./v1/gen/{go,cpp,python}

docker run --user=$$(id -u):$$(id -g) --rm -v "${PWD}":/defs -v "${PWD}/../common/v1":/common namely/protoc-all:1.47_2 -i /common --lint -d v1 -l go -o ./v1/gen/go/ --go-source-relative
Expand All @@ -14,10 +14,13 @@ all:
# common included files to the proto directory
cp ../common/v1/uuid.proto "${PWD}"/v1
cp ../common/v1/object_key.proto "${PWD}"/v1
curl -kL https://github.com/googleapis/googleapis/archive/master.tar.gz | tar --strip=1 -zxvf - googleapis-master/google/api
mv google "${PWD}"/v1/

docker run --user=$$(id -u):$$(id -g) --rm -v "${PWD}"/v1/:/out -v "${PWD}"/v1:/protos pseudomuto/protoc-gen-doc --doc_opt=markdown,autogen.md
docker run --user=$$(id -u):$$(id -g) --rm -v "${PWD}"/v1/:/out -w /out --entrypoint=sh ghcr.io/docker-multiarch/google-api-linter:1.36.0 -c "api-linter /out/*.proto --output-format summary"

# remove common included files from the proto directory
rm "${PWD}"/v1/uuid.proto
rm "${PWD}"/v1/object_key.proto
rm "${PWD}"/v1/object_key.proto
rm -rf "${PWD}"/v1/google

0 comments on commit cda3f46

Please sign in to comment.