Skip to content
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

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

directionless
Copy link
Contributor

@directionless directionless commented Oct 25, 2023

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

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.
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`)
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

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

Copy link
Contributor

@James-Pickett James-Pickett Oct 25, 2023

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

pkg/make/builder.go Outdated Show resolved Hide resolved
pkg/make/builder.go Outdated Show resolved Hide resolved
Co-authored-by: Rebecca Mahany-Horton <rebeccamahany@gmail.com>
@directionless directionless added this pull request to the merge queue Oct 26, 2023
Merged via the queue into kolide:main with commit a8c1f9c Oct 26, 2023
24 checks passed
@directionless directionless deleted the seph/fix-build branch October 26, 2023 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants