Avoid warning about deprecated build paramaters within make.go
This commit is contained in:
parent
27004bd61e
commit
05e35ac71a
1 changed files with 1 additions and 1 deletions
2
make.go
2
make.go
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue