-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fix false-positive when determining if patcher (current package) is going to be uninstalled #101
base: release/3
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ class Plugin implements | |
\Composer\EventDispatcher\EventSubscriberInterface, | ||
\Composer\Plugin\Capable | ||
{ | ||
const COMPOSER_PACKAGE = 'vaimo/composer-patches'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not a huge fan of introducing random constants like that, is it possible to get this information out of composer API in a backward compatible way? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does not seem possible, because the I suggest just leaving this as is. |
||
|
||
/** | ||
* @var \Vaimo\ComposerPatches\Package\OperationAnalyser | ||
*/ | ||
|
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.
Have you looked at adding a test for this change?
Perhaps there is some existing test, which exercises this code, that could be the basis for an additional test to show that the "Vaimo namespace case" works as expected?
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.
I gave up on figuring out how it is tested. It has too smart testing framework and close to no documentation on how to actually use it :(