mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
using strings.Split
This commit is contained in:
parent
b2fcbaeb49
commit
4bee616121
@ -51,7 +51,7 @@ func build(name, goos, goarch string, ctx *context.Context) error {
|
||||
}
|
||||
cmd := []string{"go", "build"}
|
||||
if ctx.Config.Build.Flags != "" {
|
||||
cmd = append(cmd, strings.Split(ctx.Config.Build.Flags, " ")...)
|
||||
cmd = append(cmd, strings.Fields(ctx.Config.Build.Flags)...)
|
||||
}
|
||||
cmd = append(cmd, "-ldflags="+ldflags, "-o", output, ctx.Config.Build.Main)
|
||||
if err := run(goos, goarch, cmd); err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user