Fix version variables in Contao recipe#3735
Merged
Merged
Conversation
antonmedv
approved these changes
Nov 27, 2023
midweste
pushed a commit
to midweste/deployer
that referenced
this pull request
Jan 16, 2024
* upstream/master: (78 commits) [automatic] Update docs with bin/docgen Move Caddy file in to separate file (deployphp#3765) Create parent folders if needed (deployphp#3764) [automatic] Update docs with bin/docgen Switch to owner change instead of shh user change (deployphp#3763) Don't show warning if `become` parameter is set to `root` (deployphp#3761) [automatic] Update docs with bin/docgen Adding Spiral Framework recipe (deployphp#3582) Crontab: allow sudo with crontab:use_sudo option (deployphp#3759) fix: run cachetool without args (deployphp#3742) Fix version variables in Contao recipe (deployphp#3735) contrib: fix creating cron jobs first time Removing wrong information regarding reverse DNS (deployphp#3726) [automatic] Update docs with bin/docgen Fix issue provoked after adding array casting and returning empty fcgi parameter to the command (deployphp#3724) Revert "[TASK] Update TYPO3 recipe (deployphp#3674)" (deployphp#3723) ci-cd docs: update link to gitlab doc section (deployphp#3721) [automatic] Update docs with bin/docgen Fix test function (deployphp#3717) [automatic] Update docs with bin/docgen ...
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes default values of config variables
contao_versionandsymfony_version.Context:
When installed, Contao overrides output of Symfony's console command
bin/console --version, so that it returns Contao's version instead of Symfony's. The only way the get Symfony's version in this case is to runbin/console about.In addition,
bin/console contao:versioncommand is deprecated since Contao 4.13 (current LTS), and no longer works in Contao 5.2 (current latest). Thus, in Contao 4.13 bothconsole --versionandconsole contao:versionshow Contao's version and neither of them shows Symfony's. In Contao 5.2,console --versionshows Contao's version, andconsole contao:versionfails.This PR fixes it by parsing output of
bin/console --versionintocontao_versionvariable, andbin/console about– intosymfony_version. The fix works for both Contao 4.13 and Contao 5.2 versions. The parsing is done in the same way as in the bare Symfony's recipe:deployer/recipe/symfony.php
Lines 8 to 12 in a0a21e2