Closed chdiza closed 6 years ago
@chdiza Maybe git bisect
will help you find out why it's happening.
Bisection done:
6b9ca5dbf5b625f1da93b82f5752b37ee0c61600 is the first bad commit
commit 6b9ca5dbf5b625f1da93b82f5752b37ee0c61600
Author: Mike McQuaid <mike@mikemcquaid.com>
Date: Fri Dec 8 16:33:33 2017 +0000
Remove some unset/checked environment checks
These will be redundant once environment filtering is on by default
in #3529.
My hunch is that the removal in this commit of the GEM_HOME
and GEM_PATH
unsettings are the problem.
@chdiza Sounds about right. Nice work on the spelunking @chdiza, I'll a look.
Tried hard to reproduce this and couldn't, I'm afraid. I installed that gem and tried this with the system ruby
first in my PATH
and with the patch-differing-only rbenv
one flipped (and vice-versa) and couldn't get this warning. This may be an rvm
or setting GEM_*
problem or a call inside Homebrew to ruby
that should be a call to $HOMEBREW_RUBY
(if you can figure this out: I'll make a PR to fix it).
It makes me think that maybe "no ENV filtering" is really "with some ENV filtering".
So, it's basically the opposite: "no ENV filtering" used to be "some ENV filtering" but it isn't any more. You have GEM_*
stuff set so 💥 because we're no longer unsetting those variables.
Sorry but due to the above: closing. Thanks for a great report as usual, though, @chdiza.
brew
command and notbrew install
ing or the post-install behaviour of one or more formulae? If it's a formulae-specific problem please file this issue at the relevant tap e.g. for Homebrew/homebrew-core https://github.com/Homebrew/homebrew-core/issues/newbrew update
and retried your prior step?brew doctor
, fixed all issues and retried your prior step?brew config
andbrew doctor
and included their output with your issue?Config:
Doctor says "ready to brew"
Sometimes I test stuff out with
HOMEBREW_NO_ENV_FILTERING=1
. That's not typically set, but I've been using it to get a feel for how my custom taps' building might be different now that the ENV filtering is enabled for everyone.I've discovered that using that variable results in some weird output, even when I'm not doing anything fancy. I have a non-brewed, non-system ruby in my $PATH. E.g., if I do:
then I see the following:
and then I see the normal
brew ls
output.I do of course have the curses gem installed with my non-brewed, non-system ruby. But I find this output confusing and mysterious. There's nothing wrong with that gem (its extensions ARE built).
Anybody have any ideas? It's hard to employ
*NO_ENV_FILTERING
for testing purposes when this keeps appearing. It makes me think that maybe "no ENV filtering" is really "with some ENV filtering".