From 5e02f2ac1e78f79cad42c315ef0545f4609d3b57 Mon Sep 17 00:00:00 2001 From: Zihan Dai <99155080+PDGGK@users.noreply.github.com> Date: Tue, 1 Sep 2026 22:32:42 +1000 Subject: [PATCH] Upgrade the Grafana plugin's IoTDB Go client to v2.0.10 v2.0.8 accepts a columnIndex equal to the number of measurement schemas in client/tablet.go, at both of the sites that check it. v2.0.10 rejects it. v2.0.10 declares go 1.25 where v2.0.8 declared go 1.13, so the module's go directive moves with it, and the three setup-go steps in grafana-plugin.yml have to move as well for the workflow to build the backend at all. github.com/apache/thrift moves from v0.17.0 to v0.24.0 as an indirect consequence. --- .github/workflows/grafana-plugin.yml | 6 +++--- connectors/grafana-plugin/go.mod | 8 +++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/grafana-plugin.yml b/.github/workflows/grafana-plugin.yml index 1c75543..1127d13 100644 --- a/.github/workflows/grafana-plugin.yml +++ b/.github/workflows/grafana-plugin.yml @@ -37,7 +37,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.25" - name: Install dependencies and Build and test frontend run: | @@ -73,7 +73,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.25" - name: Build through the Maven entrypoint run: mvn clean package -Pwith-grafana-plugin -DskipTests -ntp @@ -100,7 +100,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.25" - name: Resolve the declared minimum Grafana version id: floor diff --git a/connectors/grafana-plugin/go.mod b/connectors/grafana-plugin/go.mod index fbc0951..9915586 100644 --- a/connectors/grafana-plugin/go.mod +++ b/connectors/grafana-plugin/go.mod @@ -15,19 +15,17 @@ module github.com/grafana/grafana-starter-datasource-backend -go 1.21 - -toolchain go1.21.0 +go 1.25 require ( - github.com/apache/iotdb-client-go/v2 v2.0.8 + github.com/apache/iotdb-client-go/v2 v2.0.10 github.com/grafana/grafana-plugin-sdk-go v0.250.0 ) require ( github.com/BurntSushi/toml v1.3.2 // indirect github.com/apache/arrow/go/v15 v15.0.2 // indirect - github.com/apache/thrift v0.17.0 // indirect + github.com/apache/thrift v0.24.0 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect