Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected result on comparision of semver #4234

Open
mabunixda opened this issue Jun 14, 2024 · 0 comments
Open

unexpected result on comparision of semver #4234

mabunixda opened this issue Jun 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mabunixda
Copy link

Currently working on policies with/on terraform, so I came across to verify a certain minimal terraform version.

But the actual result is not as expected - on these mql statements I would expect that all these mql queries have a value of boolean as a result

cnspec> terraform.plan.terraformVersion
terraform.plan.terraformVersion: "1.8.0"

cnspec> semver(terraform.plan.terraformVersion) > ='1.6'
[ok] value: <unknown-score-type>

cnspec> semver(terraform.plan.terraformVersion) >= "1.6"
[ok] value: <unknown-score-type>

cnspec> semver(terraform.plan.terraformVersion) == semver('1.8.0') 
[ok] value: <unknown-score-type>

cnspec> semver('1.6.0') == semver('1.6.0')
[ok] value: <unknown-score-type>
@chris-rock chris-rock added the bug Something isn't working label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants