Newbie question re contributing to statamic/cms #4564
-
Please be forgiving if the following is too dumb a question ... :-) Although I've been using PHP, Laravel, and Statamic for a couple of client projects in a small team I have never contributed to any bigger project yet ... What I've done so far:
Then I tried to follow this approach https://johnbraun.blog/posts/contributing-to-a-PHP-package to use my cloned local core package instead of
Effect: When I try to open the CP from the app's home page I get: Could not find the [statamic/cms] in your composer.lock file. So clearly something went wrong ... But I cannot require both the original statamic/cms and the local renamed copy at the same time, right? I hope someone can help? Many thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We'll be adding a more in depth article to the docs on how to do all this. You don't need to change the Adding the "repositories": [
{
"type": "path",
"url": "/path/to/cms",
"canonical": false
}
] Once you've added the The |
Beta Was this translation helpful? Give feedback.
We'll be adding a more in depth article to the docs on how to do all this.
You don't need to change the
name
in your fork'scomposer.json
.You should continue to require
statamic/cms
.Adding the
repositories
to your app'scomposer.json
to point to your local fork should be enough.You might need to add
canonical: false
.Once you've added the
repositories
, you can docomposer require "statamic/cms 3.2.x-dev"
The
3.2.x-dev
part corresponds to the branch you have checked out.If it's numeric, like
3.2
, you have to do3.2.x-dev
.If it's a word, like
mybranch
(orfeature/mybranch
) …