1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-12-21 19:20:06 +01:00

🔧 Use HOMEBREW_DOWNLOAD_CONCURRENCY=auto (homebrew 6.4+)

This should significantly speed up installs of PHP versions and also
extensions. This will become the default at some point in Homebrew's
future, but it is nice to benefit from this already.
This commit is contained in:
2025-08-15 12:12:24 +02:00
parent 047cb681c8
commit 68cf12f584
4 changed files with 5 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ class InstallPhpExtensionCommand: BrewCommand {
let command = """
export HOMEBREW_NO_INSTALL_UPGRADE=true; \
export HOMEBREW_NO_INSTALL_CLEANUP=true; \
export HOMEBREW_DOWNLOAD_CONCURRENCY=auto; \
\(Paths.brew) install \(self.installing.map { $0.formulaName }.joined(separator: " ")) --force
"""

View File

@@ -36,6 +36,7 @@ class RemovePhpExtensionCommand: BrewCommand {
let command = """
export HOMEBREW_NO_INSTALL_UPGRADE=true; \
export HOMEBREW_NO_INSTALL_CLEANUP=true; \
export HOMEBREW_DOWNLOAD_CONCURRENCY=auto; \
\(Paths.brew) remove \(phpExtension.formulaName) --force --ignore-dependencies
"""

View File

@@ -92,6 +92,7 @@ class ModifyPhpVersionCommand: BrewCommand {
// Upgrade the main formula
let command = """
export HOMEBREW_DOWNLOAD_CONCURRENCY=auto; \
export HOMEBREW_NO_INSTALL_CLEANUP=true; \
\(Paths.brew) upgrade php;
\(Paths.brew) install php@\(short);
@@ -108,6 +109,7 @@ class ModifyPhpVersionCommand: BrewCommand {
}
let command = """
export HOMEBREW_DOWNLOAD_CONCURRENCY=auto; \
export HOMEBREW_NO_INSTALL_UPGRADE=true; \
export HOMEBREW_NO_INSTALL_CLEANUP=true; \
\(Paths.brew) upgrade \(self.upgrading.map { $0.name }.joined(separator: " "))

View File

@@ -33,6 +33,7 @@ class RemovePhpVersionCommand: BrewCommand {
))
let command = """
export HOMEBREW_DOWNLOAD_CONCURRENCY=auto; \
export HOMEBREW_NO_INSTALL_UPGRADE=true; \
export HOMEBREW_NO_INSTALL_CLEANUP=true; \
\(Paths.brew) remove \(formula) --force --ignore-dependencies