caveats: warn if sbin missing from PATH #38778
Conversation
If a formula installs files to sbin, check if it's in the user's path; warn if it isn't.
ahem #37040 ;) |
Hwhoops! |
Any update here? |
I think it would be better to modify any formulae ending up using |
@ilovezfs Agreed. Feel free to an |
I'm still quite 👎 on arbitrarily ramming everything into |
@DomT4 it's not arbitrary. The transplantation of software originally intended to be installed into |
Can we do a quick roll call to see if there's consensus on what to do here – should we migrate this to homebrew/brew as a PR, or just close it as "won't do"? I'm 👎 on this myself: I can see the reason for both warning in caveats or just leaving things alone and assuming the user will know where to find things. I think caveats would be cool if we also included adding Definitely 👎 on just moving things in to |
I think we should move things to |
I think it does in some cases. There's certainly some tools from Homebrew formulae in my I tend to agree with @apjanke's viewpoint on this, but per an earlier comment it's not something that stirs up much passion in me. |
Yeh, fair point, I think it's probably worth fixing up this stuff for them, then, and opening another issue about stuff that doesn't require root not being in |
Some of it's not necessarily root per se, but a "sysadmin" user or "superuser" WRT Homebrew (not necessarily WRT OS X). Which does make sense in Homebrew's context, even though it's usually the human user's everyday user account. It could be the current user account, or it could be I also think this touches on deferring to upstream: they're the ones who separated out some of their commands to |
I think the difference is that our use-case is pretty different to what most upstreams would expect. |
We move the prefix. So the upstream expectation that /usr/sbin is in the PATH goes out the window due to our actions not their intentions. |
Random note that a coworker was confused about this issue yesterday because most Homebrew usage does not require this in your PATH. |
Migrated to an issue in Homebrew/brew#291. |
If a formula installs files to sbin, check if it's in the user's path;
warn if it isn't.
Closes #38767.