aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Werth <spam-by-github@never-mind.eu>2022-10-28 09:32:36 +0200
committerDmitry Vyukov <dvyukov@google.com>2022-10-28 08:07:01 -0700
commitbc17b3a44ae17683c674f14c8d9b6a14dc66407d (patch)
tree0c7de97ff609ef5ea2a8734c49b5d11ba7db8663
parentea12ae9b4b6868a459085a62e894ccd682163822 (diff)
pkg/build: be more lenient when parsing Bazel's build log
When Bazel is released with https://github.com/bazelbuild/bazel/commit/c9f9b0b84c486 the message on build failures changes. In general, we advise not to read the output but use the build protocol instead.
-rw-r--r--pkg/build/build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/build/build.go b/pkg/build/build.go
index 4baed2b95..9f56976de 100644
--- a/pkg/build/build.go
+++ b/pkg/build/build.go
@@ -307,7 +307,7 @@ var buildFailureCauses = [...]buildFailureCause{
{weak: true, pattern: regexp.MustCompile(`: not found`)},
{weak: true, pattern: regexp.MustCompile(`: final link failed: `)},
{weak: true, pattern: regexp.MustCompile(`collect2: error: `)},
- {weak: true, pattern: regexp.MustCompile(`FAILED: Build did NOT complete`)},
+ {weak: true, pattern: regexp.MustCompile(`(ERROR|FAILED): Build did NOT complete`)},
}
var fileRes = []*regexp.Regexp{