1
0

Remove build date from binary

This commit is contained in:
kolaente
2020-06-18 19:26:53 +02:00
parent b4cdb75d15
commit 021e3e307b
4 changed files with 2 additions and 6 deletions

View File

@ -31,6 +31,5 @@ var versionCmd = &cobra.Command{
Short: "Print the version number of Vikunja",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("Vikunja api version %s\n", version.Version)
fmt.Printf("Built at %s\n", version.BuildTime)
},
}

View File

@ -42,7 +42,7 @@ var webCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
// Version notification
log.Infof("Vikunja version %s, built at %s", version.Version, version.BuildTime)
log.Infof("Vikunja version %s", version.Version)
// Additional swagger information
swagger.SwaggerInfo.Version = version.Version