Skip to content

fix(constraint): apply upper bound for single-segment pessimistic constraints - #223

Closed
AdamMagued wants to merge 1 commit into
hashicorp:mainfrom
AdamMagued:fix-issue-162
Closed

AdamMagued wants to merge 1 commit into
hashicorp:mainfrom
AdamMagued:fix-issue-162

Conversation

@AdamMagued

Copy link
Copy Markdown

Fixes #162

Summary

  • Applied upper bound constraint (< major+1) for single-segment pessimistic (~>) version constraints.
  • Added unit tests validating major-only pessimistic constraint boundaries.

Verified via container sandbox test suite.

…straints

Signed-off-by: AdamMagued <adamismailmageud@gmail.com>
@jrasell jrasell closed this Oct 9, 2026
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.

~> Constraint Operator Does Not Apply Upper Bound for Major-Only Versions (e.g., “~> 18” includes 19.0.0)

2 participants