Skip to content

Commit 3eedae4

Browse files
committed
Adjustment for Composer install/load order
1 parent eccb26f commit 3eedae4

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.0.1] - 2019-06-30
11+
12+
### Added
13+
- Added hari/pw-module as a dependency to force Composer to install it before this package.
14+
1015
## [1.0.0] - 2019-06-29
1116

1217
### Added

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,18 @@ And here's an equally stripped-down sample composer.json for a site profile:
6868

6969
- PHP 5.5 or newer
7070

71+
### Why does this project require other installers via composer.json?
72+
73+
In case you're wondering why we currently have hari/pw-module as a requirement for this package,
74+
there's actually a good reason for this, even though it is admittedly a bit of a hack:
75+
76+
* Composer doesn't let us define package install order, but it prioritizes Composer installers.
77+
* If multiple installers compete for one package, the installer installed or loaded later wins.
78+
79+
By adding other installers (currently only hari/pw-module) as a dependency for this project we're
80+
actually effectively forcing Composer to install it *before* this project, which in turn allows us
81+
to override other installers when it comes to choosing an installer for pw-* packages.
82+
7183
## License
7284

7385
This project is licensed under the Mozilla Public License Version 2.0.

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
}
1414
],
1515
"require": {
16-
"composer-plugin-api": "^1.0"
16+
"composer-plugin-api": "^1.0",
17+
"hari/pw-module": "^1.0.0"
1718
},
1819
"autoload": {
1920
"psr-4": {

0 commit comments

Comments
 (0)