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

cleanup_before: clean /Library/Frameworks directory #916

Merged
merged 3 commits into from
Apr 27, 2023

Conversation

carlocab
Copy link
Member

These directories contain headers and libraries that we don't want to
use, so let's get rid of them when building on a GitHub macOS runner.

The Mono framework in particular contains Gettext headers that I've seen
mess up CMake builds in the past.

These directories contain headers and libraries that we don't want to
use, so let's get rid of them when building on a GitHub macOS runner.

The Mono framework in particular contains Gettext headers that I've seen
mess up CMake builds in the past.
Comment on lines 26 to 39
delete_or_move Pathname.glob(HOMEBREW_CELLAR/"*")

frameworks_dir = Pathname("/Library/Frameworks")
%w[
Mono.framework
PluginManager.framework
Python.framework
R.framework
Xamarin.Android.framework
Xamarin.Mac.framework
Xamarin.iOS.framework
].each do |framework|
path = frameworks_dir/framework
test "sudo", "mv", path, HOMEBREW_TEMP if path.exist?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this use delete_or_move instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs sudo, unfortunately. Would you rather we refactor delete_or_move to use sudo when requested?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carlocab Might make sense but: up to you, no strong feelings other way!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@MikeMcQuaid MikeMcQuaid merged commit c753dd7 into Homebrew:master Apr 27, 2023
2 checks passed
@MikeMcQuaid
Copy link
Member

Thanks @carlocab!

@carlocab carlocab deleted the clean-frameworks branch April 27, 2023 13:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants