File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,16 @@ endif
9393
9494protoVer =0.15.3
9595protoImageName =ghcr.io/cosmos/proto-builder:$(protoVer )
96- protoImage =$(DOCKER ) run --rm -v $(CURDIR ) :/workspace --workdir /workspace $(protoImageName )
96+ protoImage =$(DOCKER ) run --rm -e HOME=/tmp \
97+ --user=$(shell id -u) :$(shell id -g) \
98+ $(shell id -G | xargs -n1 printf -- ' --group-add % s') \
99+ -v $(CURDIR ) :/workspace:z --workdir /workspace $(protoImageName )
97100
98101proto-all : proto-format proto-lint proto-gen
99102
103+ proto-sh :
104+ $(protoImage ) sh
105+
100106proto-gen :
101107 @echo " Generating Protobuf files"
102108 @$(protoImage ) sh ./scripts/protocgen.sh
Original file line number Diff line number Diff line change 55# docker run --rm -v $(pwd):/workspace --workdir /workspace cosmossdk-proto sh ./scripts/protocgen.sh
66
77set -eo pipefail
8+ touch .permtest
9+ rm -f .permtest
10+ cp -r /home/* /.cache /tmp
811
912echo " Generating gogo proto code"
1013cd proto
You can’t perform that action at this time.
0 commit comments