Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Desportes <williamdes@wdes.fr>2022-09-10 22:45:24 +0300
committerWilliam Desportes <williamdes@wdes.fr>2022-09-29 14:18:20 +0300
commit01724139b26884a22deca270f23d18dc32225cb3 (patch)
treebda6fb9b41bb4a74513b1593b198d33177f9cbac /scripts
parentadd68b47e314fb74c6e6c11bafbbed6ed8c74344 (diff)
Add the version to composer.json at release build time
Ref: https://github.com/Roave/SecurityAdvisories/issues/76 Fixes: https://github.com/phpmyadmin/phpmyadmin/issues/17661 Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create-release.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/create-release.sh b/scripts/create-release.sh
index 14222674db..0f9bcd9b46 100755
--- a/scripts/create-release.sh
+++ b/scripts/create-release.sh
@@ -449,6 +449,10 @@ if [ -z "$PHP_REQ" ] ; then
echo "Failed to figure out required PHP version from composer.json"
exit 2
fi
+
+echo "* Writing the version to composer.json (version: $version)"
+composer config version "$version"
+
# Okay, there is no way to tell composer to install
# suggested package. Let's require it and then revert
# composer.json to original state.