Repro:
make sync-diff-inspector
bin/sync-diff-inspector -V
we get no useful information:
App Name: sync_diff_inspector
Release Version: None
Git Commit Hash: None
Git Branch: None
UTC Build Time: None
Go Version: go1.25.8
despite the Makefile have correctly set the env var
$ make sync-diff-inspector
CGO_ENABLED=1 GO111MODULE=on go build -trimpath -ldflags '-X "github.com/pingcap/tiflow/pkg/version.ReleaseVersion=v9.0.0-beta.2.pre-70-g6c0bc226b" -X "github.com/pingcap/tiflow/pkg/version.BuildTS=2026-03-21 05:27:41" -X "github.com/pingcap/tiflow/pkg/version.GitHash=6c0bc226bd163d7d9f7c9dad074af81562ce7b2b" -X "github.com/pingcap/tiflow/pkg/version.GitBranch=master" -X "github.com/pingcap/tidb/pkg/parser/mysql.TiDBReleaseVersion=v9.0.0-beta.2.pre-70-g6c0bc226b"' -o bin/sync_diff_inspector ./sync_diff_inspector
...
This is also seen from the binaries uploaded to tiup.
Repro:
we get no useful information:
despite the Makefile have correctly set the env var
This is also seen from the binaries uploaded to
tiup.