Skip to content

Commit 84fbc28

Browse files
committed
ci: stable go tool -n output
1 parent a620a44 commit 84fbc28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ build:
8282
#
8383
.PHONY: buf-gen
8484
buf-gen: node_modules
85-
@echo $(shell go tool -n protoc-gen-doc)
85+
go tool -n protoc-gen-doc # Apparently on the first run the path is the temporary build output and will be deleted again. Later invocations use the correct go build cache path.
8686
PATH=$$PATH:$(shell dirname "$$(go tool -n protoc-gen-doc)") \
8787
go tool buf generate proto
8888
make format
@@ -108,6 +108,7 @@ test-e2e:
108108

109109
.PHONY: test-docs-samples
110110
test-docs-samples:
111+
go tool -n jd # Apparently on the first run the path is the temporary build output and will be deleted again. Later invocations use the correct go build cache path.
111112
PATH=$$PATH:$(shell dirname "$$(go tool -n jd)") \
112113
cd ./contrib/docs-code-samples && \
113114
npm i && \

0 commit comments

Comments
 (0)