瀏覽代碼

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.
Nils Adermann 12 年之前
父節點
當前提交
cfd7a50f0a
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      src/Composer/Command/ArchiveCommand.php

+ 0 - 5
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('<info>Creating the archive.</info>');