Skip to content

Commit bb02026

Browse files
committed
fix refresh of generated Go files
"make build" did not rebuild csi.pb.go because the file existed and make wasn't told that the file depends on spec.proto.
1 parent 5b0d454 commit bb02026

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ endif
4343
build_cpp:
4444
$(MAKE) -C lib/cxx
4545

46-
$(CSI_GO):
46+
# The file exists, but could be out-of-date.
47+
$(CSI_GO): $(CSI_PROTO)
4748
$(MAKE) -C lib/go csi/csi.pb.go
4849

4950
$(CSI_A): $(CSI_GO)

lib/go/csi/csi.pb.go

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)