From cfd7a50f0a0d2e3acaceb439c0e17aaf87555677 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Thu, 28 Mar 2013 12:06:43 +0100 Subject: [PATCH] Do not hardcode vendor dir exclusion on archive. For one thing this wouldn't have worked for any custom installers anyway which can write installed code to other places. This will now allow one to use composer archive on a clean code checkout to build an archive as we are used to. Or on one that had composer install run to build an archive that can be used for deployment which includes the vendors. --- src/Composer/Command/ArchiveCommand.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Composer/Command/ArchiveCommand.php b/src/Composer/Command/ArchiveCommand.php index 03f9d4bef..61a5d8e48 100644 --- a/src/Composer/Command/ArchiveCommand.php +++ b/src/Composer/Command/ArchiveCommand.php @@ -78,11 +78,6 @@ EOT } } else { $package = $this->getComposer()->getPackage(); - - // also ignore the vendor dir - $excludes = $package->getArchiveExcludes(); - $excludes[] = '/'.$this->getComposer()->getConfig()->get('vendor-dir'); - $package->setArchiveExcludes($excludes); } $io->write('Creating the archive.');