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:
parent
27004bd61e
commit
05e35ac71a
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 New Issue
Block a user