This is an automated email from the ASF dual-hosted git repository.

zeroshade pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-go.git


The following commit(s) were added to refs/heads/main by this push:
     new a50b9c04 fix(ci): accept --json and pin gobenchdata (#906)
a50b9c04 is described below

commit a50b9c04db57ebb0c279f0587c8d91b1d330aa49
Author: Minh Vu <[email protected]>
AuthorDate: Thu Jul 9 21:01:09 2026 +0200

    fix(ci): accept --json and pin gobenchdata (#906)
---
 ci/scripts/bench.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ci/scripts/bench.sh b/ci/scripts/bench.sh
index 597b2a19..f3fef829 100644
--- a/ci/scripts/bench.sh
+++ b/ci/scripts/bench.sh
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-# this will output the benchmarks to STDOUT but if `-json` is passed
+# this will output the benchmarks to STDOUT but if `-json` or `--json` is 
passed
 # as the second argument, it will create a file "bench_stats.json"
 # in the directory this is called from containing a json representation
 
@@ -43,8 +43,8 @@ go test -bench=. -benchmem -timeout 40m -run=^$ ./... | tee 
bench_stat.dat
 
 popd
 
-if [[ "$2" = "-json" ]]; then
-  go install go.bobheadxi.dev/gobenchdata@latest
+if [[ "$2" = "-json" || "$2" = "--json" ]]; then
+  go install go.bobheadxi.dev/[email protected]
   PATH=$(go env GOPATH)/bin:$PATH
   export PATH
   cat "${source_dir}"/bench_*.dat | gobenchdata --json bench_stats.json

Reply via email to