mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-05 08:02:13 +00:00
build: Tags must be joined by space, not comma (fixes #3262)
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3268
This commit is contained in:
parent
bc794e7c15
commit
1753771356
4
build.go
4
build.go
@ -362,7 +362,7 @@ func install(target target, tags []string) {
|
|||||||
os.Setenv("GOBIN", filepath.Join(cwd, "bin"))
|
os.Setenv("GOBIN", filepath.Join(cwd, "bin"))
|
||||||
args := []string{"install", "-v", "-ldflags", ldflags()}
|
args := []string{"install", "-v", "-ldflags", ldflags()}
|
||||||
if len(tags) > 0 {
|
if len(tags) > 0 {
|
||||||
args = append(args, "-tags", strings.Join(tags, ","))
|
args = append(args, "-tags", strings.Join(tags, " "))
|
||||||
}
|
}
|
||||||
if race {
|
if race {
|
||||||
args = append(args, "-race")
|
args = append(args, "-race")
|
||||||
@ -382,7 +382,7 @@ func build(target target, tags []string) {
|
|||||||
rmr(target.binaryName)
|
rmr(target.binaryName)
|
||||||
args := []string{"build", "-i", "-v", "-ldflags", ldflags()}
|
args := []string{"build", "-i", "-v", "-ldflags", ldflags()}
|
||||||
if len(tags) > 0 {
|
if len(tags) > 0 {
|
||||||
args = append(args, "-tags", strings.Join(tags, ","))
|
args = append(args, "-tags", strings.Join(tags, " "))
|
||||||
}
|
}
|
||||||
if race {
|
if race {
|
||||||
args = append(args, "-race")
|
args = append(args, "-race")
|
||||||
|
Loading…
Reference in New Issue
Block a user