mirror of
https://github.com/restic/restic.git
synced 2024-12-22 15:57:07 +00:00
Address code review comments
This commit is contained in:
parent
dca200c2e9
commit
4c47c2b2c9
1 changed files with 4 additions and 4 deletions
8
build.go
8
build.go
|
@ -229,8 +229,8 @@ func gitVersion() string {
|
|||
return version
|
||||
}
|
||||
|
||||
// Constants represents a set constants set in the final binary to the given
|
||||
// value.
|
||||
// Constants represents a set of constants that are set in the final binary to
|
||||
// the given value via compiler flags.
|
||||
type Constants map[string]string
|
||||
|
||||
// LDFlags returns the string that can be passed to go build's `-ldflags`.
|
||||
|
@ -318,7 +318,7 @@ func main() {
|
|||
die("remove GOPATH at %s failed: %v\n", err)
|
||||
}
|
||||
} else {
|
||||
fmt.Printf("leaving temporary GOPATH at %v\n", gopath)
|
||||
verbosePrintf("leaving temporary GOPATH at %v\n", gopath)
|
||||
}
|
||||
}()
|
||||
|
||||
|
@ -333,7 +333,7 @@ func main() {
|
|||
constants["main.version"] = version
|
||||
}
|
||||
ldflags := "-s " + constants.LDFlags()
|
||||
fmt.Printf("ldflags: %s\n", ldflags)
|
||||
verbosePrintf("ldflags: %s\n", ldflags)
|
||||
|
||||
args := []string{
|
||||
"-tags", strings.Join(buildTags, " "),
|
||||
|
|
Loading…
Reference in a new issue