File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,6 @@ s3proxy.jar:
66
77get-deps : s3proxy.jar
88 go get -t ./...
9+
10+ build :
11+ go build -ldflags " -X main.Version=` git rev-parse HEAD` "
Original file line number Diff line number Diff line change @@ -69,12 +69,14 @@ COPYRIGHT:
6969`
7070}
7171
72+ var VersionHash string
73+
7274func NewApp () (app * cli.App ) {
7375 uid , gid := MyUserAndGroup ()
7476
7577 app = & cli.App {
7678 Name : "goofys" ,
77- Version : "0.0.12" ,
79+ Version : "0.0.12-" + VersionHash ,
7880 Usage : "Mount an S3 bucket locally" ,
7981 HideHelp : true ,
8082 Writer : os .Stderr ,
Original file line number Diff line number Diff line change @@ -170,7 +170,11 @@ func massageArg0() {
170170 }
171171}
172172
173+ var Version string
174+
173175func main () {
176+ VersionHash = Version
177+
174178 app := NewApp ()
175179
176180 var flags * FlagStorage
You can’t perform that action at this time.
0 commit comments