Skip to content

Commit 0bd578a

Browse files
author
Ann Beeskau
committed
CICD-2267: Fix auth.json permissions
Always set COMPOSER_HOME to Magento composer folder
1 parent 909a2d7 commit 0bd578a

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)