mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
Merge pull request #1163 from tboerger/feature/deprecations
Avoid warning about deprecated build paramaters within make.go
This commit is contained in:
commit
b74e0bbe4e
1 changed files with 1 additions and 1 deletions
2
make.go
2
make.go
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue