Fix redis version issue where 7.0 like version converted to 7 #3767
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.
What is the feature/update/fix?
Fix: Redis Version Decimal Parsing Issue
We've fixed an issue where Redis version numbers with decimal points (such as
7.0) were incorrectly being converted to integers (e.g.,7) when specified in theconvox.yml. This parsing error would cause deployment failures as the truncated version number was invalid for Redis configuration.Previously, when specifying a Redis resource version like
7.0, the YAML parser would interpret this as a float and convert it to7, which is not a valid Redis version. This forced users to wrap version numbers in quotes as a workaround.How to use it?
You can now specify Redis versions with decimal points directly in your
convox.ymlwithout needing quotes:Before (workaround required):
After (now works correctly):
Both quoted and unquoted formats will now work correctly:
version: 7.0version: "7.0"version: 6.2version: "6.2"This fix applies to all Redis version specifications and ensures consistent behavior regardless of how you format the version number.
Does it have a breaking change?
There are no breaking changes introduced with this fix. Existing configurations with quoted version numbers will continue to work as before.
Requirements
To use this feature, you must be on at least rack version
20251022194219.You can check your rack's version with the command
convox rack.Update your rack to the latest version with the command
convox rack update.