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