-
Notifications
You must be signed in to change notification settings - Fork 0
include requiere dev #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
This looks a bit messy to me, maybe we should find a more readable and maintainable way for this. |
|
any ideas? |
|
We could create a script ( <?php
$buildDir = getenv('BUILD_DIR');
$orgComposerContent = json_decode(file_get_contents("$buildDir/composer.json"), true);
$stuffToCopy = ['repositories', 'config', 'require-dev'];
$parts = [];
foreach ($stuffToCopy as $key) {
$parts[$key] = $orgComposerContent[$key] ?: [];
}
$newComposerContent = json_decode(file_get_contents('composer.json'), true);
$newComposerContent = array_replace_recursive($newComposerContent, $reuse);
file_put_contents('composer.json', json_encode($newComposerContent, JSON_PRETTY_PRINT)); |
|
I'll close and reopen this to test if the travis build works. |
|
I'm not 100% sure, but I think that this also broke the script: We need proper checks for this one, too I guess. |
|
is that error from this branch? because the line number do not match, do they? |
|
Just had the same error again, the unit-tests for my module are not executed anymore: Using version The broken values are in the |
|
I'm not sure I got your point here at all. I just stumbled upon the following problem: Why not just requiring additional packages manually? Automatically merging I've released a new version to fix the problems I faced: 0.1.4...0.1.5 |
|
sorry I do not get the issue but currently I am using |
include require-dev section from the module into the oxid installation
to be able to use development tools like phpstan