brew cleanup --scrub downloading a file it then removes #6962
Replies: 3 comments
-
|
It downloads the file to know about the packages. If the same command removes it again the download will need to happen again. I don't think there is a way around this. |
Beta Was this translation helpful? Give feedback.
-
|
If this specific file is required by cleanup, does removing it with --scrub really make sense? Homebrew/brew#23022 suggests they may accumulate over time, from e.g. older OSes and whatnot; but I wonder if the "current" version, as needed by cleanup and other brew commands, should be removed by --scrub in addition to any older ones? It doesn't seem like much of an issue indeed, it's just a little weird that it gets deleted by --scrub (at least from my perspective). |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the report. This will be fixed by Homebrew/brew#23111. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew configOutput of
brew doctorDescription of issue
Probably not an issue per se (hence why posting in Discussions), more like I am curious about the behavior I observed.
I've noticed
brew cleanup --scrubrecently started removingapi/internal/packages.arm64_tahoe.jws.json-- but this file is also downloaded bybrew cleanupitself.So when running it standalone (i.e. not preceded by e.g. brew update, upgrade, install etc.),
brew clenup --scrubdownloadsapi/internal/packages.arm64_tahoe.jws.jsonbut then deletes it as part of what--scrubdoes.While clearly not standard usage, say, running
brew cleanup --scrubin a loop now downloads and removes this same file repeatedly, whereas it feels like running a cleanup command in a loop should perhaps be closer to a "no-op", so to speak?Beta Was this translation helpful? Give feedback.
All reactions