diff --git a/.gitignore b/.gitignore index e89d163..34e44f0 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,5 @@ coverage.* profile.* test.sh dtm -dtm.* \ No newline at end of file +dtm-* +dtm.* diff --git a/helper/.goreleaser.yml b/helper/.goreleaser.yml index daee966..5c5a639 100644 --- a/helper/.goreleaser.yml +++ b/helper/.goreleaser.yml @@ -12,4 +12,4 @@ builds: dir: . main: main.go ldflags: - - -s -w -X main.Version={{.Version}} -X main.Commit={{.Commit}} -X main.Date={{.Date}} + - -s -w -X main.Version={{.Version}} diff --git a/main.go b/main.go index ab781c2..013441d 100644 --- a/main.go +++ b/main.go @@ -25,18 +25,13 @@ import ( _ "github.com/dtm-labs/dtmdriver-protocol1" ) -var Version, Commit, Date string +var Version string func version() { if Version == "" { Version = "0.0.0-dev" - Commit = "NA" - Date = "NA" } - if len(Commit) > 8 { - Commit = Commit[:8] - } - fmt.Printf("version: %s commit: %s built at: %s\n", Version, Commit, Date) + fmt.Printf("dtm version: %s\n", Version) } func usage() {