-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
brew: disable compat mode when running sw_vers #10722
Conversation
Review period will end on 2021-03-02 at 00:00:00 UTC. |
Thinking about this again, I forgot that env filtering is applied here. How did this env manage to slip through that? |
Addresses Homebrew/discussions#941 Also correctly strip everything but major version for Big Sur and later.
eef537d
to
6cfb0dd
Compare
That's...a very good question. 😕 In any event, I've added another fix, to strip everything but major version from |
I'm not entirely sure about this code - we don't strip any patch versions for earlier macOS versions. Seems a bit weird and inconsistent to make this be the major version only while the earlier versions still have the full |
AFAICT, |
Yeh, this. I think I'd like to hold off here until we see at least one other person with this problem. |
Review period ended. |
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.
Want to wait to see at least one other person with this problem.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
As far as I can tell, Homebrew believes Big Sur == 11.x, so we should make sure
sw_vers
doesn't output 10.16.Addresses Homebrew/discussions#941
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?