Skip to content

Commit

Permalink
Skip gogen step in docker build to allow gogencheck step
Browse files Browse the repository at this point in the history
  • Loading branch information
matzf committed Jul 25, 2019
1 parent fe333b0 commit c01085c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ clean:

goenv: vendor

gogen: gogen_clean
gogen:
ifndef GOGEN_SKIP
rm -f go/proto/*.gen.go go/proto/*.capnp.go
bazel build //go/proto:structs //go/proto:capnp
cp --no-preserve=mode bazel-genfiles/go/proto/gogen/* go/proto/

gogen_clean:
rm -f go/proto/*.gen.go go/proto/*.capnp.go
else
echo "gogen: skipped"
endif

vendor:
./tools/vendor.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/perapp/base/Dockerfile.builder
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM scion:latest
RUN make -s all setcap && bazel clean
RUN make -s all setcap GOGEN_SKIP=1 && bazel clean

0 comments on commit c01085c

Please sign in to comment.