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
os/mac/extend/ENV/super: handle nil sdk. #14784
Conversation
Review period skipped due to |
It should be impossible for that diagnostic to pass if the SDK is nil. Where are you seeing this happen so I can reproduce? The reason I'm concerned is if the diagnostic is missing this, then this kicks the issue down the road to be, for example, an unclear build error. |
Relevant check: brew/Library/Homebrew/extend/os/mac/diagnostic.rb Lines 412 to 437 in 68859ae
|
If you want do this anyway then can we do the nil check after the diagnostic check? |
@Bo98 clean
|
I'm aware this is not meant to happen but: sometimes it does and the lack of handling produces a subpar error.
3f274a5
to
b3db997
Compare
@Bo98 Yup, good call. Done that now, it'll skip setting Agreed that fixing the diagnostic would be ideal. I'd still like to land this because it's not great to assume something be never |
@Bo98 Yeh, the issue is with an
|
Very unusual requirement that. Will take a look, thanks! |
I'm aware this is not meant to happen but: sometimes it does and the lack of handling produces a subpar error.