Skip to content

Commit 6d477f5

Browse files
authored
Merge pull request #121 from packagist/explain-reasons-for-create-project
Explain suggested `create-project` approach
2 parents bbe31b3 + b7a4a57 commit 6d477f5

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)