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

Find subset within the constraints #256

Open
thelovekesh opened this issue Feb 8, 2025 · 0 comments
Open

Find subset within the constraints #256

thelovekesh opened this issue Feb 8, 2025 · 0 comments

Comments

@thelovekesh
Copy link

Let's assume the following scenario:

c1, _ := semver.NewConstraint(">=1.4.0")
c2, _ := semver.NewConstraint("^1")

res, _ := c2.Satisfies(c1)

With the current APIs, it seems that achieving this is not possible.

@mattfarina, if it’s feasible, could you please provide some guidance on whether this can be done with the existing package? I’m happy to contribute to this change if you can share how the package currently parses version ranges as I have very less idea about this.

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