Skip to content

Commit

Permalink
fix the permission problem (#2333)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsk967 authored Nov 21, 2023
1 parent aa82893 commit 689ca36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ proto-gen:

proto-swagger-gen:
@echo "Generating Protobuf Swagger"
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGenSwagger}$$"; then docker start -a $(containerProtoGenSwagger); else docker run --name $(containerProtoGenSwagger) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGenSwagger}$$"; then docker start -a $(containerProtoGenSwagger); else docker run --name $(containerProtoGenSwagger) --user root -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \
sh ./contrib/scripts/protoc-swagger-gen.sh; fi

proto-format:
Expand All @@ -354,5 +354,5 @@ proto-check-breaking:

proto-update-swagger-docs:
@echo "Updating Protobuf Swagger Docs"
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGenSwagger}$$"; then docker start -a $(containerProtoGenSwagger); else docker run --name $(containerProtoGenSwagger) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGenSwagger}$$"; then docker start -a $(containerProtoGenSwagger); else docker run --user root --name $(containerProtoGenSwagger) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \
sh ./contrib/scripts/protoc-update-swagger-docs.sh; fi

0 comments on commit 689ca36

Please sign in to comment.