Create `.keepme` files in directories after creation/`brew update`
MikeMcQuaid opened this issue Β· 9 comments
A detailed description of the proposed feature
The top-level directories in /usr/local
e.g. /usr/local/sbin
should have a .keepme
file or similar created in them to avoid their removal in the macOS Catalina 10.15 installer.
The motivation for the feature
Avoid users having to manually sudo
to recreate these directories.
How the feature would be relevant to at least 90% of Homebrew users
Most Homebrew users will end up upgrading to 10.15.
What alternatives to the feature have been considered
Requiring users to manually recreate these.
Can I pick this one ?
@veera83372, go ahead! π
Fixed in #6464
Hi, do you have any further information or a reference by Apple how this file is honored? Asking because I'm already using Catalina Beta 8 and the folders haven't been removed yet even without this file. It could be relevant to some of my projects but I've tried to search for and was unable to find any sources.
@KizzyCode I don't have a public source, sorry. I believe @fxcoudert saw this during testing and we were advised by Apple engineers to do this.
This is the only thread I found regarding this issue. Sorry if I'm posting in the wrong place.
I think brew update
is adding this file: /usr/loca/sbin/.keepme
and then brew doctor
gives this warning:
Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so:
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile
Everything works, but I was wondering if there's a way to avoid the extraneous warning without breaking something else in brew.
Thank you for your time.