Skip to content

Commit

Permalink
Fix Merge plugin usage (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Oct 11, 2021
1 parent 4bd31c5 commit 7a6d71c
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 28 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ test: vendor fixtures/vendor fixtures/vendor-bin/sub/vendor

vendor:
composer update
touch $@

fixtures/vendor:
composer update --working-dir fixtures --no-interaction ${COMPOSER_FLAGS}
touch $@

fixtures/vendor-bin/sub/vendor:
composer update --working-dir fixtures/vendor-bin/sub --no-interaction ${COMPOSER_FLAGS}
touch $@
67 changes: 43 additions & 24 deletions fixtures/vendor-bin/sub/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/InheritancePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
use Composer\IO\IOInterface;
use Composer\Package\Package;
use Fidry\Composer\InheritancePlugin\Merge\PluginState;
use Wikimedia\Composer\Logger;
use Wikimedia\Composer\MergePlugin as WikimediaMergePlugin;
use Wikimedia\Composer\Merge\V2\Logger;
use Wikimedia\Composer\Merge\V2\MergePlugin as WikimediaMergePlugin;

/**
* @author Théo FIDRY <theo.fidry@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion src/Merge/ExtraPackage.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace Fidry\Composer\InheritancePlugin\Merge;

use Fidry\Composer\InheritancePlugin\InheritancePlugin;
use Wikimedia\Composer\Merge\ExtraPackage as WikimediaExtraPackage;
use Wikimedia\Composer\Merge\V2\ExtraPackage as WikimediaExtraPackage;

/**
* @author Théo FIDRY <theo.fidry@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion src/Merge/PluginState.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Fidry\Composer\InheritancePlugin\Merge;

use Wikimedia\Composer\Merge\PluginState as WikimediaPluginState;
use Wikimedia\Composer\Merge\V2\PluginState as WikimediaPluginState;

/**
* @author Théo FIDRY <theo.fidry@gmail.com>
Expand Down

0 comments on commit 7a6d71c

Please sign in to comment.