From 9f6cff78e4de817b3542b1060fa89785d1bc71b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 3 Jul 2020 19:52:12 +0200 Subject: [PATCH] Fix: Ignore platform requirements when updating lock file --- CHANGELOG.md | 15 +++++++++++++-- src/Command/NormalizeCommand.php | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24fa2dad..ba645621 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## Unreleased -For a full diff see [`2.5.1...main`][2.5.1...main]. +For a full diff see [`2.5.2...main`][2.5.2...main]. + +## [`2.5.2`][2.5.2] + +For a full diff see [`2.5.1...2.5.2`][2.5.1...2.5.2]. + +### Fixed + +* Started ignoring platform requirements when updating the lock file ([#481]), by [@localheinz] ## [`2.5.1`][2.5.1] @@ -385,6 +393,7 @@ For a full diff see [`81bc3a8...0.1.0`][81bc3a8...0.1.0]. [2.4.0]: https://github.com/ergebnis/composer-normalize/releases/tag/2.4.0 [2.5.0]: https://github.com/ergebnis/composer-normalize/releases/tag/2.5.0 [2.5.1]: https://github.com/ergebnis/composer-normalize/releases/tag/2.5.1 +[2.5.2]: https://github.com/ergebnis/composer-normalize/releases/tag/2.5.2 [81bc3a8...0.1.0]: https://github.com/ergebnis/composer-normalize/compare/81bc3a8...0.1.0 [0.1.0...0.2.0]: https://github.com/ergebnis/composer-normalize/compare/0.1.0...0.2.0 @@ -421,7 +430,8 @@ For a full diff see [`81bc3a8...0.1.0`][81bc3a8...0.1.0]. [2.3.2...2.4.0]: https://github.com/ergebnis/composer-normalize/compare/2.4.0...main [2.4.0...2.5.0]: https://github.com/ergebnis/composer-normalize/compare/2.4.0...2.5.0 [2.5.0...2.5.1]: https://github.com/ergebnis/composer-normalize/compare/2.5.0...2.5.1 -[2.5.1...main]: https://github.com/ergebnis/composer-normalize/compare/2.5.1...main +[2.5.1...2.5.2]: https://github.com/ergebnis/composer-normalize/compare/2.5.1...2.5.2 +[2.5.2...main]: https://github.com/ergebnis/composer-normalize/compare/2.5.2...main [#1]: https://github.com/ergebnis/composer-normalize/pull/1 [#2]: https://github.com/ergebnis/composer-normalize/pull/2 @@ -475,6 +485,7 @@ For a full diff see [`81bc3a8...0.1.0`][81bc3a8...0.1.0]. [#420]: https://github.com/ergebnis/composer-normalize/pull/420 [#422]: https://github.com/ergebnis/composer-normalize/pull/422 [#424]: https://github.com/ergebnis/composer-normalize/pull/424 +[#481]: https://github.com/ergebnis/composer-normalize/pull/481 [@ergebnis]: https://github.com/ergebnis [@ergebnis-bot]: https://github.com/ergebnis-bot diff --git a/src/Command/NormalizeCommand.php b/src/Command/NormalizeCommand.php index d5378afd..051c94f6 100644 --- a/src/Command/NormalizeCommand.php +++ b/src/Command/NormalizeCommand.php @@ -370,6 +370,7 @@ private static function updateLockerInWorkingDirectory( return $application->run( new Console\Input\ArrayInput([ 'command' => 'update', + '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => true, '--no-plugins' => true,