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

Proposal: Add version diff #96

Open
gdavison opened this issue May 24, 2022 · 0 comments
Open

Proposal: Add version diff #96

gdavison opened this issue May 24, 2022 · 0 comments

Comments

@gdavison
Copy link

go-version currently supports comparing versions as a whole, e.g. 2.3.4 > 1.2.3. Sometimes we need to determine if the difference between versions is a major change, a minor change, etc.

Since Compare() supports an arbitrary number of components, the diff should as well.

Only the first diff is likely to be relevant, as in the diff of 2.3.4 vs 1.2.3, we care about the major version change, and the minor version changes are not meaningful.

I can work on this if this sounds good. We're going to be using a very pared-down version of this in the AWS Provider.

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