Skip to content

Commit a22527a

Browse files
committed
ci: fix benchstat build with go 1.13
1 parent f300bd9 commit a22527a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,13 @@ ${BENCH_PATH} bench-deps:
123123
rm -rf ${BENCH_PATH}
124124
mkdir ${BENCH_PATH}
125125
go clean -testcache
126-
cd ${BENCH_PATH} && git clone https://go.googlesource.com/perf && cd perf && go install ./cmd/benchstat
126+
# It is unable to build a latest version of benchstat with go 1.13. So
127+
# we need to switch to an old commit.
128+
cd ${BENCH_PATH} && \
129+
git clone https://go.googlesource.com/perf && \
130+
cd perf && \
131+
git checkout 91a04616dc65ba76dbe9e5cf746b923b1402d303 && \
132+
go install ./cmd/benchstat
127133
rm -rf ${BENCH_PATH}/perf
128134

129135
.PHONY: bench

0 commit comments

Comments
 (0)