Skip to content

Commit

Permalink
refactor(common): update makefile with latest changes
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sanders <[email protected]>
  • Loading branch information
sandersms committed Oct 16, 2023
1 parent 9dafd3b commit d81cc5e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions inventory/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright (c) 2022 Dell Inc, or its subsidiaries.

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

Expand All @@ -13,9 +14,11 @@ all:

# protoc doesn't include the googleapis, so we have to get them here
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:1.5.1 --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.56.1 -c "api-linter /out/*.proto --output-format summary"
docker run --user=$$(id -u):$$(id -g) --rm -v "${PWD}"/v1/:/out -w /out --entrypoint=sh ghcr.io/docker-multiarch/google-api-linter:1.56.1 -c "api-linter /out/*.proto --output-format github --set-exit-status"
docker run --user=$$(id -u):$$(id -g) --rm -v "${PWD}"/v1/:/out -w /out --entrypoint=sh ghcr.io/docker-multiarch/google-api-linter:1.58.1 -c "api-linter /out/*.proto --output-format summary"
docker run --user=$$(id -u):$$(id -g) --rm -v "${PWD}"/v1/:/out -w /out --entrypoint=sh ghcr.io/docker-multiarch/google-api-linter:1.58.1 -c "api-linter /out/*.proto --output-format github --set-exit-status"
rm -rf "${PWD}"/v1/google

0 comments on commit d81cc5e

Please sign in to comment.