Ability for the package to define merge rules for a group
Open
Nobody has claimed this yet.
type:feature
- Dominant language
- PHP
- Stars
- 34
- Forks
- 9
- Avg merge
- 1h 7m
- Merged PRs (30d)
- 1
Description
Proposed new feature or change
In Composer JSON or the PHP config of the package, add an ability to specify the merge strategy for a group:
"config-plugin-options": {
"source-directory": "config",
"merge": {
"widgets-themes": { "recursive-depth": 2 }
}
}
If there are two packages defining the merge strategy, then throw an exception. It should always be only a single package.
See https://github.com/yiisoft/widget/issues/130#issuecomment-5728823932
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating how Composer JSON and the package's PHP configuration are parsed, then trace the existing group merge handling. Done means a group can specify its merge strategy, and defining that strategy in more than one package raises an exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100