-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Sonoma issues with the build #1424
Conversation
We've been seeing build issues with modern Xcode. In theory they should have been fixed with go 1.21, but it's not clear that code merged. So, this is a simple hammer. It defines some acceptable warnings, and then doesn't exit of those are the only things in stderr.
pkg/make/builder.go
Outdated
stderrStr = strings.ReplaceAll(stderrStr, "ld: warning: ignoring duplicate libraries: '-lobjc'\n", "") | ||
stderrStr = strings.ReplaceAll(stderrStr, "# github.com/kolide/launcher/cmd/launcher\n", "") | ||
|
||
re := regexp.MustCompile(`ld: warning: object file \(.*\) was built for newer 'macOS' version \(14.0\) than being linked \(11.0\)\n`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want to make this one any more flexible with the version numbers? just wondering if it will still work for those who haven't upgraded yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷 We could. Though I hope it's fixed by then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same 🙏 I just wasn't sure if we were seeing 13.0 before this, I thought mine started earlier than the upgrade
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still get the error sometimes and I'm on Ventura still, I don't know how to repro it
Co-authored-by: Rebecca Mahany-Horton <rebeccamahany@gmail.com>
We've been seeing build issues with modern Xcode. In theory they should have been fixed with go 1.21, but it's not clear that code merged. So, this is a simple hammer.
It defines some acceptable warnings, and then doesn't exit of those are the only things in stderr.
Closes #1423