Skip to content

sync-diff-inspector carries no version information in -V #12567

@kennytm

Description

@kennytm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/sync_diffIssues or PRs related to sync_diff_inspector.severity/minortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions