Closed chdiza closed 6 years ago
Bisection reveals:
7615d3a8121a251dc747ddcbe3e040ddf64963d6 is the first bad commit
commit 7615d3a8121a251dc747ddcbe3e040ddf64963d6
Author: Mike McQuaid <mike@mikemcquaid.com>
Date: Thu Sep 6 18:38:43 2018 +0100
Improve writable directory handling
Consolidate the handling of which directories need to exist and which
need to be writable. Additionally, add a fatal check for formula
installations to ensure that any directories that need to be writable
are so before attempting an installation.
Fixes #4626.
@chdiza This is intentional, I'm afraid. This directory is created by the installer and (as demonstrated by the linked issue) this is much more graceful than failing hard when it's created at install time.
Fair enough. I still think the doctor
is being overzealous here: why tell me to create the dir, when brew
is going to automatically create it the instant I try to install anything? There is thus zero danger that the dir will fail to exist before it's needed, and there no need for me to do anything.
brew
command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?To my surprise, my HOMEBREW_PREFIX now contains a
Frameworks
dir, even though it's empty and nothing I brew (or ever have brewed) uses such a thing. This dir should only be created if it's needed.If I delete it, it comes back sometime later automatically during some
install
step---even if the installed thing does not and could not use such a dir (e.g.,markdown
). But if I first rundoctor
, I get the following:No, I should not. The dir's absence is not a problem, its presence is irritating, and that dir should not be auto-created by
install
(unless the formula I'm installing needs it).That doctor check should only complain if I already have a
Frameworks
dir but it has the wrong permissions.