Skip to content

Commit b7a4a57

Browse files
Docs: explain why we suggest create-project with --add-repository
1 parent 7021207 commit b7a4a57

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/setup.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ Once the command is finished, the created composer.json file will contain your o
2727
]
2828
```
2929

30+
Alternatively, it is possible to configure your template package to already include your Private Packagist repository in its composer.json. We do not encourage this approach, because this pre-defined repository
31+
will cause conflicts if you rely on functionality that uses different private repositories, such as suborganizations or vendor customers. If you do prefer to take this approach, you should remove the `--add-repository` option from the `create-project` command.
32+
3033
Note: Running `composer create-project` with multiple `--repository` arguments is only supported with Composer 2.
3134

3235
## Adding Private Packagist to an existing project with a composer.json

0 commit comments

Comments
 (0)