You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
924 B
29 lines
924 B
Index: src/github.com/restic/restic/build.go |
|
--- src/github.com/restic/restic/build.go.orig 2018-09-01 16:07:42.000000000 +0200 |
|
+++ src/github.com/restic/restic/build.go 2018-09-01 16:11:07.192317000 +0200 |
|
@@ -328,7 +328,7 @@ |
|
// available). |
|
func getVersion() string { |
|
versionFile := getVersionFromFile() |
|
- versionGit := getVersionFromGit() |
|
+ versionGit := versionFile |
|
|
|
verbosePrintf("version from file 'VERSION' is %q, version from git %q\n", |
|
versionFile, versionGit) |
|
@@ -558,7 +558,7 @@ |
|
if version != "" { |
|
constants["main.version"] = version |
|
} |
|
- ldflags := "-s -w " + constants.LDFlags() |
|
+ ldflags := constants.LDFlags() |
|
verbosePrintf("ldflags: %s\n", ldflags) |
|
|
|
var ( |
|
@@ -614,6 +614,7 @@ |
|
verbosePrintf("environment:\n go: %v\n build: %v\n", goEnv, buildEnv) |
|
|
|
buildArgs = append(buildArgs, |
|
+ "-v", |
|
"-tags", strings.Join(buildTags, " "), |
|
"-ldflags", ldflags, |
|
"-o", output, buildTarget,
|
|
|