Conversation
|
Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement Learn more about why HashiCorp requires a CLA and what the CLA includes 0 out of 2 committers have signed the CLA.
Edwin Marrima seems not to be a GitHub user. Have you signed the CLA already but the status is still pending? Recheck it. |
fix: update module
radeksimko
left a comment
There was a problem hiding this comment.
Hello @edwin-Marrima
Could you describe a use case for comparing constraints?
Is this just for displaying constraints somewhere in a UI?
I mean, it's clear how to sort versions but how could we sort the operators? That looks like a very subjective and context-dependent problem. I can see you attempted to do that but it seems a bit arbitrary to decide that one operator is "less" than the other.
What might be a reasonable compromise is to expose the parsed version via a hypothetical Version() method of a Constraint, what do you think about that?
No description provided.