Skip to content

Commit afdf609

Browse files
author
Roberto Sora
authored
Replace default dummy version (#415)
* replace default dummy version that overlaps with a real version with an explicit dummy version * remove redundant VERSIONSTRING build var from taskfile
1 parent 8425d79 commit afdf609

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: Taskfile.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,10 @@ vars:
6363
sh: echo `go list ./... | grep -v legacy | tr '\n' ' '`
6464

6565
# build vars
66-
VERSIONSTRING: "0.3.7-alpha.preview"
6766
COMMIT:
6867
sh: echo ${TRAVIS_COMMIT:-`git log -n 1 --format=%h`}
6968
LDFLAGS: >
70-
-ldflags '-X github.com/arduino/arduino-cli/version.versionString={{.VERSIONSTRING}}
71-
-X github.com/arduino/arduino-cli/version.commit={{.COMMIT}}'
69+
-ldflags '-X github.com/arduino/arduino-cli/version.commit={{.COMMIT}}'
7270
7371
# test vars
7472
GOFLAGS: "-timeout 10m -v -coverpkg=./... -covermode=atomic"

Diff for: version/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
)
2323

2424
var (
25-
defaultVersionString = "0.3.7-alpha.preview"
25+
defaultVersionString = "0.0.0-git"
2626
versionString = ""
2727
commit = ""
2828
)

0 commit comments

Comments
 (0)