Open woodruffw opened 4 months ago
The word "may" is because the check for this is rudimentary: https://github.com/Homebrew/brew/blob/75e77db9f4c5b0760d464722a3298f44785c8dc2/Library/Homebrew/uninstall.rb#L69-L72. Not all formulae use the pkgetc
system.
It does seem a bit risky to recommend rm -rf
-ing directories which some users may blindly run and break functionality.
We could track etc
files that are included inside bottle with some extra record keeping. Though there isn't a great way to track all etc
files as some are created at runtime (may need something more manual like Casks).
One idea is https://github.com/Homebrew/brew/pull/18570; however, it only shows build-time installed configuration files and won't be able to detect generated files.
Could still keep guesses but I've seen user issues where the root cause was removing some etc
file so recommending poor guesses is risky, even with additional warnings.
There doesn't seem to be an ideal option for generated files.
On formula side, we could try moving as much etc
usage to pkgetc
; however, this would be a breaking change.
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I was trying to show
sl
(a very important program) to @Moisan and then uninstall it afterwards.What happened (include all command output)?
What did you expect to happen?
The above, but with no misleading warning about deleting
openssl
's configurations.Step-by-step reproduction instructions (by running
brew
commands)