1
0
Fork 0

Fix create-project when passed with a path repo to disable symlinks by default

Fixes #12222
main
Jordi Boggiano 2024-12-11 10:50:24 +01:00
parent 6a9336fa9c
commit 144e8f8a34
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -404,6 +404,12 @@ EOT
) { ) {
continue; continue;
} }
// disable symlinking for the root package by default as that most likely makes no sense
if (($repoConfig['type'] ?? null) === 'path' && !isset($repoConfig['options']['symlink'])) {
$repoConfig['options']['symlink'] = false;
}
$repositorySet->addRepository(RepositoryFactory::createRepo($io, $config, $repoConfig, $rm)); $repositorySet->addRepository(RepositoryFactory::createRepo($io, $config, $repoConfig, $rm));
} }
} }