From a979cc78ed141855a76b7f196d24205c41107bbc Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 11 Aug 2015 11:20:15 +0100 Subject: [PATCH] Suppress warnings on touch() failures of the vendor dir, refs #4070 --- src/Composer/Installer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 1b329c2bb..a3eb66301 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -344,7 +344,9 @@ class Installer $vendorDir = $this->config->get('vendor-dir'); if (is_dir($vendorDir)) { - touch($vendorDir); + // suppress errors as this fails sometimes on OSX for no apparent reason + // see https://github.com/composer/composer/issues/4070#issuecomment-129792748 + @touch($vendorDir); } }