Merge pull request #1163 from tboerger/feature/deprecations

Avoid warning about deprecated build paramaters within make.go
This commit is contained in:
Brad Rydzewski 2015-08-24 08:29:26 -07:00
commit b74e0bbe4e

View file

@ -113,7 +113,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