summaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
authorFélix Sipma <felix+debian@gueux.org>2017-01-08 15:32:30 +0100
committerFélix Sipma <felix+debian@gueux.org>2017-01-08 15:32:30 +0100
commit2d97cde7a4b935ade9d8dbf05dff136fac357e3b (patch)
tree669034103e71a0080479afe31bc69101fa68a8d7 /build.go
parentfb6c3cf716ad4b0d5c287ed05ba889d777681bdb (diff)
New upstream version 0.3.3
Diffstat (limited to 'build.go')
-rw-r--r--build.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/build.go b/build.go
index 04a65d182..8406492d6 100644
--- a/build.go
+++ b/build.go
@@ -12,7 +12,6 @@ import (
"path/filepath"
"runtime"
"strings"
- "time"
)
var (
@@ -33,8 +32,6 @@ var config = struct {
Tests: []string{"restic/...", "cmds/..."}, // tests to run
}
-const timeFormat = "2006-01-02 15:04:05"
-
// specialDir returns true if the file begins with a special character ('.' or '_').
func specialDir(name string) bool {
if name == "." {
@@ -392,8 +389,7 @@ func main() {
output := filepath.Join(cwd, outputFilename)
version := getVersion()
- compileTime := time.Now().Format(timeFormat)
- constants := Constants{`main.compiledAt`: compileTime}
+ constants := Constants{}
if version != "" {
constants["main.version"] = version
}