Răsfoiți Sursa

Use && for internal_copied_filegroup.

So that the rule fails if one or more files cannot be copied.
Jisi Liu 10 ani în urmă
părinte
comite
6ddcae225c
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      protobuf.bzl

+ 3 - 3
protobuf.bzl

@@ -180,9 +180,9 @@ def internal_copied_filegroup(
       name=name+"_genrule",
       srcs=srcs,
       outs=outs,
-      cmd=";".join(["cp $(location %s) $(location %s)" % \
-                    (s, _RelativeOutputPath(s, include)) \
-                    for s in srcs]))
+      cmd=" && ".join(["cp $(location %s) $(location %s)" %
+                       (s, _RelativeOutputPath(s, include))
+                       for s in srcs]))
 
   native.filegroup(
       name=name,