Closed ctrlcctrlv closed 1 year ago
Please take a look at https://docs.brew.sh/Installation#untar-anywhere-unsupported, I think that should work for your use case.
We won't add support for installing arbitrary versions or non-default prefixes to our official install script though.
01166f2 is just a common sense bandwidth save.
To clarify on why we don't do shallow clones: we used to but GitHub requested we stop doing so as it's actually extremely resource intensive. This can have a knock on effect that the whole repo is rate limited.
I do realise this means a slow clone and larger disk space on the clientside however. The addition of the new API install mechanism was the answer to this.
I'm going to close this and resubmit with another branch at a later date given the uncertain status of brew
as my version (see ctrlcctrlv/brew.PKGBUILD) currently installs to /usr. I emailed the AUR maintainers some ideas on other ways to package it, but until that happens, this issue has unfortunately become moot. Also, the option of untarring means that v2 of the PKGBUILD may not need patches at all (fingers crossed).
Thanks all. :)
All changes non-breaking.
Closes #770. Closes #771. https://github.com/Homebrew/install/commit/767c59a1eddc64576747a410b2d57189c7c0168d allows to pass
HOMEBREW_ROOT_OKIE_DOKIE
which allows running installer as root, fakeroot or not. https://github.com/Homebrew/install/commit/01166f23f6f91b923b21ca8bd5a4d353ca6b7114 is just a common sense bandwidth save.