From 3a347a77aa1da1417e3f5e3d0216103a69dbabe1 Mon Sep 17 00:00:00 2001 From: Rebecca Mahany-Horton Date: Wed, 25 Oct 2023 16:17:41 -0400 Subject: [PATCH] Ignore duplicate libraries warning during build --- pkg/make/builder.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/make/builder.go b/pkg/make/builder.go index 4199afed5..4278eb67a 100644 --- a/pkg/make/builder.go +++ b/pkg/make/builder.go @@ -599,7 +599,12 @@ func (b *Builder) BuildCmd(src, appName string) func(context.Context) error { } if stderr.Len() > 0 { - return errors.New("stderr not empty") + // We know this warning is safe to ignore and we expect that it should go away + // with a future Golang version. + if strings.TrimSpace(stderr.String()) != fmt.Sprintf(`# github.com/kolide/launcher/cmd/%s +ld: warning: ignoring duplicate libraries: '-lobjc'`, filepath.Base(src)) { + return errors.New("stderr not empty") + } } // Tell github where we're at