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.
25 lines
810 B
25 lines
810 B
Index: src/github.com/restic/restic/build.go |
|
--- src/github.com/restic/restic/build.go.orig 2017-11-01 17:11:31.000000000 +0100 |
|
+++ src/github.com/restic/restic/build.go 2017-11-01 17:22:02.096507000 +0100 |
|
@@ -254,7 +254,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) |
|
@@ -422,10 +422,11 @@ |
|
if version != "" { |
|
constants["main.version"] = version |
|
} |
|
- ldflags := "-s -w " + constants.LDFlags() |
|
+ ldflags := constants.LDFlags() |
|
verbosePrintf("ldflags: %s\n", ldflags) |
|
|
|
args := []string{ |
|
+ "-x", |
|
"-tags", strings.Join(buildTags, " "), |
|
"-ldflags", ldflags, |
|
"-o", output, config.Main,
|
|
|