1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-30 08:06:52 +02:00

Avoid warning about deprecated build paramaters within make.go

This commit is contained in:
Thomas Boerger 2015-08-24 14:59:25 +02:00
parent 27004bd61e
commit 05e35ac71a

View File

@ -87,7 +87,7 @@ func build() error {
{"github.com/drone/drone/cmd/drone-build", "bin/drone-build"},
}
for _, bin := range bins {
ldf := fmt.Sprintf("-X main.revision %s -X main.version %s", sha, version)
ldf := fmt.Sprintf("-X main.revision=%s -X main.version=%s", sha, version)
cmd := exec.Command("go", "build", "-o", bin.output, "-ldflags", ldf, bin.input)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr