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

~> syntax in not supported #22

Open
alex-ikse opened this issue May 22, 2023 · 0 comments
Open

~> syntax in not supported #22

alex-ikse opened this issue May 22, 2023 · 0 comments

Comments

@alex-ikse
Copy link

Describe the bug

This action is not able to find min/max version if version constraint is written with the syntax ~> X.Y.

~> 1.3 mean: at least 1.3.0 and can accept any 1.X.Y version. It's a shortcut for >= 1.3, <2.0.0
~> 1.3.4 mean: at least 1.3.4 and can accept any 1.3.Y version. It's a shortcut for >= 1.3.4, <1.4.0

See: https://developer.hashicorp.com/terraform/language/expressions/version-constraints

To Reproduce

Using a required_version with ~> 1.3 and this action find min: 1.3.0, max 1.3.9

Expected behavior

The action should return min: 1.3.0 and max 1.4.6

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

No branches or pull requests

1 participant