shoenig / marathonctl

marathonctl is a CLI tool for Marathon
MIT License
100 stars 26 forks source link

marathonctl -v returns "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" #33

Open scalp42 opened 8 years ago

scalp42 commented 8 years ago

hi @shoenig, thanks again for the tool.

Just noticed:

root@master-ubuntu-1404:~# marathonctl -v
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Any ideas ?

shoenig commented 8 years ago

I think you might just need to run go generate first, which substitutes a string in version.go with the git hash

[skivvy marathonctl (master)] $ go build && ./marathonctl -v
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[skivvy marathonctl (master)] $ go generate && go build && ./marathonctl -v
3e2e8f6be7b8c2fe391caebbc84c2e90e55bb2b7