File tree Expand file tree Collapse file tree 5 files changed +9
-29
lines changed Expand file tree Collapse file tree 5 files changed +9
-29
lines changed Original file line number Diff line number Diff line change 1
1
BINARY := go-spacemesh
2
- VERSION := 0.0.1
2
+ VERSION := 0.1.7
3
3
COMMIT = $(shell git rev-parse HEAD)
4
4
SHA = $(shell git rev-parse --short HEAD)
5
5
CURR_DIR = $(shell pwd)
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import (
26
26
"github.com/spacemeshos/go-spacemesh/sync"
27
27
"github.com/spacemeshos/go-spacemesh/tortoise"
28
28
"github.com/spacemeshos/go-spacemesh/turbohare"
29
- "github.com/spacemeshos/go-spacemesh/version"
30
29
"github.com/spacemeshos/post/shared"
31
30
"go.uber.org/zap"
32
31
"io/ioutil"
@@ -97,7 +96,11 @@ var VersionCmd = &cobra.Command{
97
96
Use : "version" ,
98
97
Short : "Show version info" ,
99
98
Run : func (cmd * cobra.Command , args []string ) {
100
- fmt .Println (version .Version )
99
+ fmt .Print (cmdp .Version )
100
+ if cmdp .Commit != "" {
101
+ fmt .Printf ("+%s" , cmdp .Commit )
102
+ }
103
+ fmt .Println ()
101
104
},
102
105
}
103
106
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ require (
19
19
github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337 // indirect
20
20
github.com/spacemeshos/ed25519 v0.0.0-20190530014421-e235766d15a1
21
21
github.com/spacemeshos/merkle-tree v0.0.0-20191028110812-1908c3126c82
22
- github.com/spacemeshos/poet v0.0.0-20200211124537-55497a2dff28
22
+ github.com/spacemeshos/poet v0.1.0
23
23
github.com/spacemeshos/post v0.0.0-20191225190235-dfb8a5803e6d
24
24
github.com/spacemeshos/sha256-simd v0.0.0-20190111104731-8575aafc88c9
25
25
github.com/spf13/afero v1.2.0 // indirect
Original file line number Diff line number Diff line change @@ -205,8 +205,8 @@ github.com/spacemeshos/merkle-tree v0.0.0-20190612125135-48574fd5f419 h1:h01wKBJ
205
205
github.com/spacemeshos/merkle-tree v0.0.0-20190612125135-48574fd5f419 /go.mod h1:mPxjt4RONPxSUhxOq4bhSJyKVGQJ0VMSyRiE51dDLgE =
206
206
github.com/spacemeshos/merkle-tree v0.0.0-20191028110812-1908c3126c82 h1:FmAao0SylhJiAkJfC1+Ots9SS71b8Upvxx6yoBFqEsY =
207
207
github.com/spacemeshos/merkle-tree v0.0.0-20191028110812-1908c3126c82 /go.mod h1:mPxjt4RONPxSUhxOq4bhSJyKVGQJ0VMSyRiE51dDLgE =
208
- github.com/spacemeshos/poet v0.0.0-20200211124537-55497a2dff28 h1:o/3Q4QCg4HswsfheFEsrR8guUmScuwfQVfKKsAksxdA =
209
- github.com/spacemeshos/poet v0.0.0-20200211124537-55497a2dff28 /go.mod h1:hxca04tOsB0MYhhQ3ydZID9KwlTaJauiKD81GBeNL4s =
208
+ github.com/spacemeshos/poet v0.1.0 h1:WYBCUjwvjmITFOwUqXYT/kUF5Z2xJcJjpNoM9SUYl7U =
209
+ github.com/spacemeshos/poet v0.1.0 /go.mod h1:hxca04tOsB0MYhhQ3ydZID9KwlTaJauiKD81GBeNL4s =
210
210
github.com/spacemeshos/post v0.0.0-20191225190235-dfb8a5803e6d h1:P1lqL/7LBg3QmCMBVbFfnhIi7/AOXfJvRg4RKTXkb9I =
211
211
github.com/spacemeshos/post v0.0.0-20191225190235-dfb8a5803e6d /go.mod h1:43GwKHD+nI5wUzzUMwRbpJdC2r9dURZ6V3Jkc9eUMSE =
212
212
github.com/spacemeshos/sha256-simd v0.0.0-20190111104731-8575aafc88c9 h1:Cc+np6ORem5wrvO+YHQ1sdu71ItiQVRiYB4ugazpgxM =
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments