parent
e79771fdcc
commit
b2531c1f97
3
Makefile
3
Makefile
|
@ -23,9 +23,8 @@ else
|
|||
VERSION := $(shell git describe --exact-match --tags 2>/dev/null)
|
||||
endif
|
||||
COMMIT := $(shell git rev-parse --short HEAD)
|
||||
DATE := $(shell date --utc +%FT%TZ)
|
||||
|
||||
LDFLAGS := $(LDFLAGS) -X main.commit=$(COMMIT) -X main.date=$(DATE)
|
||||
LDFLAGS := $(LDFLAGS) -X main.commit=$(COMMIT)
|
||||
ifdef VERSION
|
||||
LDFLAGS += -X main.version=$(VERSION)
|
||||
endif
|
||||
|
|
|
@ -5,6 +5,7 @@ import (
|
|||
_ "net/http/pprof"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb"
|
||||
"github.com/influxdata/influxdb/cmd/influxd/generate"
|
||||
|
@ -20,7 +21,7 @@ import (
|
|||
var (
|
||||
version = "dev"
|
||||
commit = "none"
|
||||
date = "unknown"
|
||||
date = fmt.Sprint(time.Now().UTC().Format(time.RFC3339))
|
||||
)
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
|
|
Loading…
Reference in New Issue