hashicorp / hashicorp/go-version

[question] which is bigger according the constraint?

Open
#92 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.8k
Forks
165
Avg merge
23h 42m
Merged PRs (30d)
2

Description

I have a range of the versions and a version that I need to check if it is inside the range.
the constraint that I build was:
```
element 0: >=3.6.6
element 1: <3.6.8-15.1
```
(see screenshot for clearer vision)
![image](https://user-images.githubusercontent.com/62200850/166239968-6e33a207-96f3-4417-a06c-56f3d6568c41.png)

The version that I'm checking is `3.6.8`
The check is returning false on the "less than" element (`<3.6.8-15.1`)

Why does `3.6.8-15.1` considered **not** bigger than `3.6.8`?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.