-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Bridge/PhpUnit] fix installation path #25068
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
Conversation
passthru("$COMPOSER require --no-update symfony/phpunit-bridge \"*\""); | ||
if (file_exists($path)) { | ||
if (file_exists($path = $root.'/vendor/symfony/phpunit-bridge')) { | ||
passthru("$COMPOSER require --no-update symfony/phpunit-bridge \"*@dev\""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this install a dev version even if a stable version is installed in the project?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the "path" repo is used, the package there is at version "dev-master"
since that's the one we really want to install, we have to put this.
This PR was merged into the 3.4 branch. Discussion ---------- [Bridge/PhpUnit] fix installation path | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25067 | License | MIT | Doc PR | - Fixes yesterdays's work on the bridge, tricky one... Commits ------- bd4fe8d [Bridge/PhpUnit] fix installation path
if (file_exists($path.'/vendor/symfony/phpunit-bridge/composer.json')) { | ||
$path .= '/vendor/symfony/phpunit-bridge'; | ||
$root = __DIR__; | ||
while (!file_exists($root.'/composer.json') || file_exists($root.'/bin/simple-phpunit')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fbourigault do you know what the second part of the if is about?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are going up in directories until we find a composer.json or a bin/simple-phpunit. IMHO this is a special case for Symfony monolithic repository.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for answering, I got it straight from the horse's mouth in the meantime but forgot I asked you.
Fixes yesterdays's work on the bridge, tricky one...