1
0
Эх сурвалжийг харах

build: Tags must be joined by space, not comma (fixes #3262)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3268
Jakob Borg 9 жил өмнө
parent
commit
1753771356
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      build.go

+ 2 - 2
build.go

@@ -362,7 +362,7 @@ func install(target target, tags []string) {
 	os.Setenv("GOBIN", filepath.Join(cwd, "bin"))
 	args := []string{"install", "-v", "-ldflags", ldflags()}
 	if len(tags) > 0 {
-		args = append(args, "-tags", strings.Join(tags, ","))
+		args = append(args, "-tags", strings.Join(tags, " "))
 	}
 	if race {
 		args = append(args, "-race")
@@ -382,7 +382,7 @@ func build(target target, tags []string) {
 	rmr(target.binaryName)
 	args := []string{"build", "-i", "-v", "-ldflags", ldflags()}
 	if len(tags) > 0 {
-		args = append(args, "-tags", strings.Join(tags, ","))
+		args = append(args, "-tags", strings.Join(tags, " "))
 	}
 	if race {
 		args = append(args, "-race")