Skip to content

Only use semverCompare with valid version strings#267

Merged
jjlgao merged 3 commits intomainfrom
fix_semverCompare_issue
Apr 9, 2026
Merged

Only use semverCompare with valid version strings#267
jjlgao merged 3 commits intomainfrom
fix_semverCompare_issue

Conversation

@westrik
Copy link
Copy Markdown
Contributor

@westrik westrik commented Jan 22, 2026

Handle image tags where the pre-release part of the semver version string contains a leading zero, e.g. 3.284.10-0360315.

Fix for errors like this:

Error: template: retool/templates/deployment_workflows.yaml:1:7: executing "retool/templates/deployment_workflows.yaml" at <include "retool.workflows.enabled" .>: error calling include: template: retool/templates/_helpers.tpl:254:109: executing "retool.workflows.enabled" at <semverCompare ">= 3.6.11-0" (regexFind $valid_retool_version_regexp $.Values.image.tag)>: error calling semverCompare: Version segment starts with 0

westrik and others added 2 commits April 9, 2026 11:51
Apply the same regexFind fix to the remaining semverCompare call
on .Values.image.tag in deployment_jobs.yaml, so tags with
leading-zero prerelease segments (e.g. 3.284.10-0360315) are
handled correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jjlgao jjlgao force-pushed the fix_semverCompare_issue branch from 5afdd14 to eb48a41 Compare April 9, 2026 15:52
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jjlgao jjlgao merged commit 8bb9f0a into main Apr 9, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants