Skip to content

Commit

Permalink
Replace default dummy version (arduino#415)
Browse files Browse the repository at this point in the history
* replace default dummy version that overlaps with a real version with an explicit dummy version

* remove redundant VERSIONSTRING build var from taskfile
  • Loading branch information
Roberto Sora authored Sep 23, 2019
1 parent 8425d79 commit afdf609
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@ vars:
sh: echo `go list ./... | grep -v legacy | tr '\n' ' '`

# build vars
VERSIONSTRING: "0.3.7-alpha.preview"
COMMIT:
sh: echo ${TRAVIS_COMMIT:-`git log -n 1 --format=%h`}
LDFLAGS: >
-ldflags '-X github.com/arduino/arduino-cli/version.versionString={{.VERSIONSTRING}}
-X github.com/arduino/arduino-cli/version.commit={{.COMMIT}}'
-ldflags '-X github.com/arduino/arduino-cli/version.commit={{.COMMIT}}'
# test vars
GOFLAGS: "-timeout 10m -v -coverpkg=./... -covermode=atomic"
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
)

var (
defaultVersionString = "0.3.7-alpha.preview"
defaultVersionString = "0.0.0-git"
versionString = ""
commit = ""
)
Expand Down

0 comments on commit afdf609

Please sign in to comment.