Composer read and import all branches when using a VCS type repository #11056
-
Hi!, I have a VCS repository like this: {
"type": "vcs",
"url": "git@gitlab.com:foo/foo.git"
}, But the composer executions is slow because all branches of my repository is import and reading:
How I can avoid this behavior? Also, where can I read the meaning of all keys of the schema under repositories key? For example, what is the only key used for?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
only/exclude are for https://getcomposer.org/doc/articles/repository-priorities.md#filtering-packages As for VCS repositories, yes they are fairly inefficient as they have to scan all versions to make it all available to the solver. They are meant for temporary use really, or for use by Packagist.org and similar repos which then cache the output and make it available to Composer in a more efficient way. See https://getcomposer.org/doc/05-repositories.md#hosting-your-own for options. |
Beta Was this translation helpful? Give feedback.
only/exclude are for https://getcomposer.org/doc/articles/repository-priorities.md#filtering-packages
As for VCS repositories, yes they are fairly inefficient as they have to scan all versions to make it all available to the solver. They are meant for temporary use really, or for use by Packagist.org and similar repos which then cache the output and make it available to Composer in a more efficient way.
See https://getcomposer.org/doc/05-repositories.md#hosting-your-own for options.