-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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 "OS is not a class" crash on Ubuntu 23.10 #16479
Conversation
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.
LGTM in principle.
It does break the load path hacking we do the tests do but I'll handle fixing that later today - it probably will just be a case of pre-inserting the library path on the test side.
@Bo98 you happy to commit that straight to this PR and merge after? |
Yes, I will do that |
This seems to resolve the issue raised at Homebrew#5050
Had to make it a bit more complex to work with the test hacks we have in a few places - it now inserts it after any existing Homebrew paths. Outside of tests and certain other developer commands, this is basically the same thing as |
@Bo98 Instead of messing around with |
That's unfortunately a breaking change for taps which are not located relatively.
A theoretical |
Also to clarify: I wasn't interested in only fixing |
Thanks for the context. I think it's okay for taps to use Based on your clarification, I get the impression you thought I was asking about changing the few places that do I worry this issue could regress. It's easy to modify the To help mitigate that, it might be good to add a spec that verifies putting a conflicting file earlier in the Thank you again for the fix and for the background information. I'll skip the PR to switch to |
This seems to resolve the issue raised at discussion #5050. I have not added new tests, but this seems like something that should have tests associated with it!
Without this patch, on Ubuntu 23.10, you experience the following:
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?