From e4041a42d9681d1b9e791eb76a0d042d288c0951 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Fri, 9 Sep 2022 21:11:39 +0200 Subject: [PATCH] switched to string matching instead of bytes match --- proto_package.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto_package.go b/proto_package.go index ddf6982..763a567 100644 --- a/proto_package.go +++ b/proto_package.go @@ -244,7 +244,7 @@ func (p *ProtoPackage) build(ctx context.Context) (time.Duration, error) { return time.Since(start), fmt.Errorf("ld error detected, LTO disabled") } - if reDownloadError.Match(out.Bytes()) || rePortError.Match(out.Bytes()) || reSigError.Match(out.Bytes()) { + if reDownloadError.MatchString(out.String()) || rePortError.MatchString(out.String()) || reSigError.MatchString(out.String()) { p.DbPackage.Update().SetStatus(dbpackage.StatusQueued).ExecX(ctx) return time.Since(start), fmt.Errorf("known builderror detected") }