Closed muescha closed 6 years ago
Set HOMEBREW_CACHE
to another directory. man -P 'less -p " HOMEBREW_CACHE"' brew
.
this changes the cache for all files - but i like only some files used from different (download) location instead downloaded.
ok - you are right - bad idea - i injected it into the cache just with cp
and then installed it:
cp ~/Downloads/SweetHome3D-5.7-macosx.dmg /Users/muescha/Library/Caches/Homebrew/Cask/sweet-home3d--5.7.dmg
brew cask install sweet-home3d
==> Satisfying dependencies
==> Downloading https://downloads.sourceforge.net/sweethome3d/SweetHome3D/SweetHome3D-5.7/SweetHome3D-5.7-macosx.dmg
Already downloaded: /Users/muescha/Library/Caches/Homebrew/Cask/sweet-home3d--5.7.dmg
==> Verifying checksum for Cask sweet-home3d
==> Installing Cask sweet-home3d
==> Moving App 'Sweet Home 3D.app' to '/Applications/Sweet Home 3D.app'.
🍺 sweet-home3d was successfully installed!
PS: the same i can do with an company wide local cache
Description of feature request
in #44501 there is a temporary problem with an download server.
for this i can manually download the file as an workaround - but i like to process it with an formula to have it "on file" in my installed casks.
instead of downloading it should use an alternate location.
for example:
as parameter:
--source_file=[local_path_to_file|url}
as parameter or as default parameter in ENV
HOMEBREW_CASK_OPTS
:--source_folder=[local_path_to_folder]
it should skip the download from original place and lookup in
source_folder
for the file or use thesource_file
and place the file into the/caches/
dir and and folllow the other steps in formulawith this you can:
example usages:
PS: i expected this option also with the
brew cask fetch
command where i can just place an file into the.../caches/
folderOutput of your command with
--verbose --debug