Skip to content

Commit c7f35c2

Browse files
author
Oleksii Korshenko
authored
Merge pull request #131 from magento-cicd/CICD-2267-2.1
CICD-2267: Fix auth.json permissions - 2.1
2 parents 909a2d7 + 0bd578a commit c7f35c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/internal/Magento/Framework/Composer/ComposerFactory.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ public function __construct(
4040
*/
4141
public function create()
4242
{
43-
if (!getenv('COMPOSER_HOME')) {
44-
putenv('COMPOSER_HOME=' . $this->directoryList->getPath(DirectoryList::COMPOSER_HOME));
45-
}
43+
putenv('COMPOSER_HOME=' . $this->directoryList->getPath(DirectoryList::COMPOSER_HOME));
44+
4645
return \Composer\Factory::create(
4746
new BufferIO(),
4847
$this->composerJsonFinder->findComposerJson()

0 commit comments

Comments
 (0)