-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
enable patchelf.rb writing for devs. #8524
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
Conversation
Library/Homebrew/os/linux/global.rb
Outdated
ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? || ENV["HOMEBREW_DEVELOPER"].present? && | ||
!(ENV["CI"].present? || ENV["NO_HOMEBREW_PATCHELF_RB_WRITE"].present?) |
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.
ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? || ENV["HOMEBREW_DEVELOPER"].present? && | |
!(ENV["CI"].present? || ENV["NO_HOMEBREW_PATCHELF_RB_WRITE"].present?) | |
ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? | |
|| ENV["HOMEBREW_DEVELOPER"].present? | |
&& !ENV["CI"].present? | |
&& !ENV["HOMEBREW_NO_PATCHELF_RB_WRITE"].present?) |
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.
i'll separate the &s.
ruby has problems parsing operators on next line,
even i prefer
A
&& b
|| c
over
A &&
b ||
c
P.S: using backslash is awkward -_-
e615ca6
to
063a15b
Compare
Library/Homebrew/os/linux/global.rb
Outdated
ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? || | ||
ENV["HOMEBREW_DEVELOPER"].present? && |
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.
ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? || | |
ENV["HOMEBREW_DEVELOPER"].present? && | |
(ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? || | |
ENV["HOMEBREW_DEVELOPER"].present?) && |
Library/Homebrew/os/linux/global.rb
Outdated
(ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? || | ||
ENV["HOMEBREW_DEVELOPER"].present?) && | ||
!ENV["CI"].present? && | ||
!ENV["NO_HOMEBREW_PATCHELF_RB_WRITE"].present? |
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.
(ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? || | |
ENV["HOMEBREW_DEVELOPER"].present?) && | |
!ENV["CI"].present? && | |
!ENV["NO_HOMEBREW_PATCHELF_RB_WRITE"].present? | |
!ENV["HOMEBREW_NO_PATCHELF_RB_WRITE"].present? && | |
(ENV["HOMEBREW_PATCHELF_RB_WRITE"].present? || | |
(!ENV["CI"].present? && ENV["HOMEBREW_DEVELOPER"].present?)) |
if HOMEBREW_NO_PATCHELF_RB_WRITE
then off
if HOMEBREW_PATCHELF_RB_WRITE
then on
if CI
then off
if HOMEBREW_DEVELOPER
then on
otherwise off
76e37f9
to
7a58157
Compare
7a58157
to
0dcfdbe
Compare
brew style
with your changes locally?brew tests
with your changes locally?cc @sjackman @woodruffw