Index: src/github.com/restic/restic/build.go
--- src/github.com/restic/restic/build.go.orig	2020-09-22 19:38:12.000000000 +0200
+++ src/github.com/restic/restic/build.go	2020-09-22 23:08:25.279681000 +0200
@@ -201,7 +201,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)
@@ -395,12 +395,8 @@
 
 	verbosePrintf("detected Go version %v\n", goVersion)
 
-	preserveSymbols := false
 	for i := range buildTags {
 		buildTags[i] = strings.TrimSpace(buildTags[i])
-		if buildTags[i] == "debug" || buildTags[i] == "profile" {
-			preserveSymbols = true
-		}
 	}
 
 	verbosePrintf("build tags: %s\n", buildTags)
@@ -428,10 +424,6 @@
 		constants["main.version"] = version
 	}
 	ldflags := constants.LDFlags()
-	if !preserveSymbols {
-		// Strip debug symbols.
-		ldflags = "-s -w " + ldflags
-	}
 	verbosePrintf("ldflags: %s\n", ldflags)
 
 	var (
@@ -451,6 +443,7 @@
 	}
 
 	buildArgs = append(buildArgs,
+		"-v",
 		"-tags", strings.Join(buildTags, " "),
 		"-ldflags", ldflags,
 		"-o", output, buildTarget,
