Last active
August 4, 2023 14:08
-
-
Save cs278/f8128a19a7cc267a403573b9afb5bb28 to your computer and use it in GitHub Desktop.
Composer dependency resolution fun
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"psr/log": "*", | |
"symfony/console": "=4.4.26 || =5.4.26" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"symfony/console": "=4.4.26 || =5.4.26", | |
"psr/log": "*" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /dev/fd/63 2023-08-04 14:38:01.103626765 +0100 | |
+++ /dev/fd/62 2023-08-04 14:38:01.103626765 +0100 | |
@@ -1,8 +1,12 @@ | |
-psr/container 1.1.2 | |
-psr/log 3.0.0 | |
-symfony/console v4.4.26 | |
+psr/container 2.0.2 | |
+psr/log 2.0.0 | |
+symfony/console v5.4.26 | |
symfony/deprecation-contracts v3.3.0 | |
+symfony/polyfill-ctype v1.27.0 | |
+symfony/polyfill-intl-grapheme v1.27.0 | |
+symfony/polyfill-intl-normalizer v1.27.0 | |
symfony/polyfill-mbstring v1.27.0 | |
symfony/polyfill-php73 v1.27.0 | |
symfony/polyfill-php80 v1.27.0 | |
-symfony/service-contracts v2.5.2 | |
+symfony/service-contracts v3.3.0 | |
+symfony/string v6.3.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eu | |
dir=$(mktemp -d) | |
cd "$dir" | |
mkdir a b | |
echo '{"require":{"psr/log":"*","symfony/console":"=4.4.26 || =5.4.26"}}' | jq > a/composer.json | |
echo '{"require":{"symfony/console":"=4.4.26 || =5.4.26","psr/log":"*"}}' | jq > b/composer.json | |
composer update -d a | |
composer update -d b | |
diff --ignore-space-change -U3 <(cd a && composer show | awk '{print $1, $2}') <(cd b && composer show | awk '{ print $1, $2 }') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment