[PhpUnitBridge] skip interactive questions asked by Composer#60616
Merged
nicolas-grekas merged 1 commit intosymfony:6.4from Jun 2, 2025
Merged
[PhpUnitBridge] skip interactive questions asked by Composer#60616nicolas-grekas merged 1 commit intosymfony:6.4from
nicolas-grekas merged 1 commit intosymfony:6.4from
Conversation
following symfony#60587 so that the installation script is not blocked by Composer asking to install the bridge as a dev dependency: ``` The package you required is recommended to be placed in require-dev (because it is tagged as "testing") but you did not use --dev. Do you want to re-run the command with --dev? [yes]? ```
HypeMC
approved these changes
Jun 1, 2025
derrabus
approved these changes
Jun 2, 2025
OskarStark
approved these changes
Jun 2, 2025
Member
|
Why no set --dev instead? |
Member
|
Thank you @xabbuh. |
Member
|
Good, the questions are not displayed anyway :) |
Member
Author
I tried that first but ended of with autoloading issues when running Symfony tests locally and then stopped debugging. 😄
In fact they were displayed locally running Symfony's tests. Looks like the behaviour is different in a CI when Composer detects that it runs in a non-interactive environment. 🤷 |
Member
|
maybe we should set COMPOSER_NO_INTERACTION=1 during the call instead? |
Member
Author
|
Could be worth to investigate it as a future-proof solution in |
Member
Author
|
see #60675 |
nicolas-grekas
added a commit
that referenced
this pull request
Jun 4, 2025
…-interactively (xabbuh) This PR was merged into the 6.4 branch. Discussion ---------- [PhpUnitBridge] implicitly run all Composer commands non-interactively | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | Fix #60616 (comment) | License | MIT Commits ------- 2f1408f implicitly run all Composer commands non-interactively
This was referenced Jun 28, 2025
Merged
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
following #60587 so that the installation script is not blocked by Composer asking to install the bridge as a dev dependency: