File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,17 @@ 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+ # protoUserFlags=-e HOME=/tmp \
97+ # --user=$(shell id -u):$(shell id -g) \
98+ # $(shell id -G | xargs -n1 printf -- ' --group-add %s')
99+ protoImage =$(DOCKER ) run --rm $(protoUserFlags ) \
100+ -v $(CURDIR ) :/workspace:z --workdir /workspace $(protoImageName )
97101
98102proto-all : proto-format proto-lint proto-gen
99103
104+ proto-sh :
105+ $(protoImage ) sh
106+
100107proto-gen :
101108 @echo " Generating Protobuf files"
102109 @$(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+ cd proto
9+
10+ if touch .permtest; then
11+ rm -f .permtest
12+ else
13+ echo " ERROR: Cannot write to the current directory. Please check the permissions for this user."
14+ id || true
15+ ls -ald . || true
16+ exit 1
17+ fi
818
919echo " Generating gogo proto code"
10- cd proto
1120proto_dirs=$( find . -name ' *.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
1221for dir in $proto_dirs ; do
1322 for file in $( find " ${dir} " -maxdepth 1 -name ' *.proto' ) ; do
You can’t perform that action at this time.
0 commit comments