pingcap / tidb-tools

tidb-tools are some useful tool collections for TiDB.
Apache License 2.0
290 stars 194 forks source link

sync_diff_inspector: doesn't build with gotip #813

Closed dveeden closed 3 days ago

dveeden commented 3 months ago

Bug Report

  1. What did you do?

With

go version devel go1.24-27093581 Sat Aug 17 03:03:34 2024 +0000 linux/amd64
make GO=gotip sync_diff_inspector
  1. What did you expect to see?

Successful build

  1. What did you see instead?
dvaneeden@dve-carbon:~/dev/pingcap/tidb-tools$ make GO=gotip sync_diff_inspector 
gotip build -ldflags '-X "github.com/pingcap/tidb-tools/pkg/utils.Version=v7.5.3-2-gd226440" -X "github.com/pingcap/tidb-tools/pkg/utils.BuildTS=2024-08-19 08:17:42" -X "github.com/pingcap/tidb-tools/pkg/utils.GitHash=d226440121147098eb5eb99cbc1efb94092ec68e" -X "github.com/pingcap/tidb-tools/pkg/utils.GitBranch=master"' -o bin/sync_diff_inspector ./sync_diff_inspector
# github.com/pingcap/tidb-tools/sync_diff_inspector
link: github.com/pingcap/tidb/pkg/util/printer: invalid reference to runtime.buildVersion
make: *** [Makefile:60: sync_diff_inspector] Error 1
  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

  2. which tool are you using?

sync-diff-inspector

  1. what version of tool are you using (pump -V or tidb-lightning -V or syncer -V)?

Related