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:
@@ -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
|
||||
"""
|
||||
|
||||
|
||||
@@ -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
|
||||
"""
|
||||
|
||||
|
||||
@@ -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: " "))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user