- Issue created by @milanbombschliip
We had a problem doing composer install inside artifact_deployment since we need an auth.json file which is generated during the pipeline and present in .gitignore
Here is a quick fix patch to add the auth.json file. But a more general approach to tell the tool which files to include anyway would be nice.
diff --git a/ArtifactDeploymentCommands.php b/ArtifactDeploymentCommands.php
index 698d99b..b50cd4f 100644
--- a/ArtifactDeploymentCommands.php
+++ b/ArtifactDeploymentCommands.php
@@ -325,6 +327,7 @@ final class ArtifactDeploymentCommands extends DrushCommands {
$targetFinder->in($artifactDir)->ignoreDotFiles(FALSE);
$this->localMachineHelper->getFilesystem()->remove($targetFinder);
$this->localMachineHelper->getFilesystem()->mirror($this->dir, $artifactDir, $originFinder, ['override' => TRUE]);
+ $this->localMachineHelper->getFilesystem()->copy('./auth.json', $artifactDir . '/auth.json');
$this->localMachineHelper->checkRequiredBinariesExist(['composer']);
$outputCallback('out', 'Installing Composer production dependencies');
Find a good solution to include files which are otherwise excluded. Maybe something like --force-include 'auth.json'
none
Additional option to provide file paths or patterns to include.
none
Active
1.0
Code