From 3f16a768b8c379d948bcfe4819a82d94e6f6397b Mon Sep 17 00:00:00 2001 From: Kyungeun Kim Date: Tue, 9 Jul 2024 13:57:24 +0900 Subject: [PATCH] fix: specify correct path for tools/go.mod when running benchmark (#13639) --- testing/benchmark/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/benchmark/Makefile b/testing/benchmark/Makefile index 3961b886166..cf894325b58 100644 --- a/testing/benchmark/Makefile +++ b/testing/benchmark/Makefile @@ -105,7 +105,7 @@ run-benchmark-autotuned: .PHONY: index-benchmark-results index-benchmark-results: _default-gobench-vars - @cat $(BENCHMARK_RESULT) | go run -modfile=tools/go.mod github.com/elastic/gobench -es $(GOBENCH_HOST) -es-username $(GOBENCH_USERNAME) -es-password $(GOBENCH_PASSWORD) \ + @cat $(BENCHMARK_RESULT) | go run -modfile=$(GITROOT)/tools/go.mod github.com/elastic/gobench -es $(GOBENCH_HOST) -es-username $(GOBENCH_USERNAME) -es-password $(GOBENCH_PASSWORD) \ -index $(GOBENCH_INDEX) -tag "$(GOBENCH_DEFAULT_TAGS),$(GOBENCH_TAGS)" .PHONY: _default-gobench-vars