Skip to content

Commit

Permalink
Bump version to 1.1.0 (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
aburgel authored Feb 7, 2020
1 parent 9191caa commit ba968e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SHELL = /bin/sh

VERSION=1.0.2
VERSION=1.1.0
BUILD=`git rev-parse HEAD`

LDFLAGS=-ldflags "-w -s \
Expand Down
14 changes: 7 additions & 7 deletions cmds/generate_timestamp.go → cmds/generate_build_timestamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ import (
"github.com/spf13/cobra"
)

var generateTimestampDoc = `
var generateBuildTimestampDoc = `
Write the current UTC timestamp to the file 'testtrack/build_timestamp'.
This timestamp is used by TestTrack clients to request the version of the split
registry active at the given time.
`

func init() {
rootCmd.AddCommand(generateTimestampCmd)
rootCmd.AddCommand(generateBuildTimestampCmd)
}

var generateTimestampCmd = &cobra.Command{
Use: "generate_timestamp",
var generateBuildTimestampCmd = &cobra.Command{
Use: "generate_build_timestamp",
Short: "Write the current UTC timestamp to 'testtrack/build_timestamp'",
Long: generateTimestampDoc,
Long: generateBuildTimestampDoc,
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
return generateTimestamp()
return generateBuildTimestamp()
},
}

func generateTimestamp() error {
func generateBuildTimestamp() error {
timestamp := []byte(time.Now().UTC().Format("2006-01-02T15:04:05Z"))

return ioutil.WriteFile("testtrack/build_timestamp", timestamp, 0644)
Expand Down

0 comments on commit ba968e2

Please sign in to comment.