Problem/Motivation
Found by @Gábor Hojtsy
In ComposerExecutableValidator if the composer stager precondition does not pass you can get the message
"composer is not found" but no link to the help page.
Steps to reproduce
Proposed resolution
link to help page here also
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Screenshot 2023-02-09 at 3.12.29 PM.png | 231.75 KB | omkar.podey |
Issue fork automatic_updates-3339016
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
wim leersI wanted to RTBC, but wrapping a variable or function call in a
$this->()really does not make sense 😅Comment #5
diegorsAgree with @Wim Leers in #3, removed the
$this->(), NR.Comment #6
wim leersThank you, @diegors! 👍
Comment #7
tedbowComment #8
omkar.podey commentedThings that seem confusing
\Drupal\package_manager\Validator\ComposerExecutableValidator::setErrorit puts an untranslated string in between a translatable string, is that a good idea ?Comment #9
omkar.podey commentedComment #10
tedbowYes this is not ideal but for exceptions from other system we can't do much about that. Using the token in the
t()function will allow the rest of the message to be translated. Usually these tokens are for smaller things like a username that can't be translated.Comment #11
omkar.podey commentedComment #12
omkar.podey commentedSeems to have tests already so, needs review.
Comment #13
wim leersComment #14
tedbowMerge failed so it merge 8.x-2.x here.
Looks good, will merge when green
Comment #16
tedbow🎉 Thanks @omkar.podey and @Wim Leers!
Comment #17
wim leers