Skip to content

CleanMyMac breaks brew doctor by deleting ~/Library/Caches/Homebrew #5083

Closed

Description

@sglaser

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

  • are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh
  • ran a 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 a brew 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.
  • ran brew update and can still reproduce the problem?
  • ran brew doctor, fixed all issues and can still reproduce the problem?
  • ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:

  • What you were trying to do (and why)
  • What happened (include command output)
  • What you expected to happen
  • Step-by-step reproduction instructions (by running brew commands)
  1. Run CleanMyMac X (latest version) and request it clean Cache files.
  2. This ends up removing ~/Library/Caches/Homebrew (the entire directory)
  3. Run brew doctor
  4. See error Error: No such file or directory @ dir_s_mkdir - /Users/sglaser/Library/Caches/Homebrew/.d20181010-43574-1iit3ta
  5. Run brew leaves
  6. See error Error: No such file or directory @ dir_s_mkdir - /Users/sglaser/Library/Caches/Homebrew/.d20181010-44167-s9o84k
  7. Run mkdir ~/Library/Caches/Homebrew to create an empty directory
  8. Run brew doctor and brew leaves without error
  9. The directory now contains one file ~/Library/Caches/Homebrew/linkage.json

Suggested fix

  • Create the directory ~/Library/Caches/Homebrew when the directory doesn't exist and you're trying to create what is clearly a temp file in that directory

Attachments

See attached for (1) brew config output brew-config-output.txt, (2) brew doctor output brew-doctor-output.txt, and (3) ~/Library/Caches/Homebrew/linkage.json
linkage.json

Activity

  1. reitermarkus commented on Oct 11, 2018

    @reitermarkus
    Member

    I cannot reproduce this. Please post the output of the command with --verbose --debug.

  2. sglaser commented on Oct 11, 2018

    @sglaser
    Author
  3. added
    outdated
    on Nov 15, 2018
  4. locked as resolved and limited conversation to collaborators on Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdated

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions