gebn / plexbackup

Backs up Plex's database to S3
MIT License
3 stars 0 forks source link

Specify kingpin.Version() #17

Closed gebn closed 5 years ago

gebn commented 5 years ago

Call before .Parse(). Substitute the result of git describe --always into the source code before the build - both locally and in CI.

gebn commented 5 years ago

Look at how kubectl outputs its info:

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.4", GitCommit:"bf9a868e8ea3d3a8fa53cbb22f566771b3f8068b", GitTreeState:"clean", BuildDate:"2018-10-25T19:17:06Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.5", GitCommit:"753b2dbc622f5cc417845f0ff8a77f539a4213ea", GitTreeState:"clean", BuildDate:"2018-11-26T14:31:35Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
gebn commented 5 years ago

Closed in a5b4707.