Skip to content

Commit 8a3a430

Browse files
authored
Merge pull request #133 from MUzairS15/bug-fix
Bug Fix
2 parents 3a99ce3 + 3f860b7 commit 8a3a430

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/config/default_config.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ package config
22

33
import (
44
"time"
5-
6-
"github.com/spf13/viper"
75
)
86

97
var (
108
Server = map[string]string{
119
"name": "meshery-meshsync",
1210
"port": "11000",
13-
"version": viper.GetString("BUILD"),
11+
"version": "latest",
1412
"startedat": time.Now().String(),
1513
}
1614

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ func main() {
4444
}
4545

4646
cfg.SetKey(config.BrokerURL, os.Getenv("BROKER_URL"))
47+
48+
config.Server["version"] = version
4749
err = cfg.SetObject(config.ServerKey, config.Server)
4850
if err != nil {
4951
log.Error(err)

0 commit comments

Comments
 (0)