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

Using of dynamic vMajor.Minor tags #318

Closed
DNKpp opened this issue Dec 31, 2021 · 3 comments
Closed

Using of dynamic vMajor.Minor tags #318

DNKpp opened this issue Dec 31, 2021 · 3 comments
Labels
wontfix This will not be worked on

Comments

@DNKpp
Copy link
Contributor

DNKpp commented Dec 31, 2021

Currently its rather tedious tkeeping all projects using CPM up2date. I use the get_cpm module, which works quite nice. I think it would be a great improvement, if CPM keeps additional dynamic vMajor.Minor tags, which will then be moved to the current active patch tag. These tags could then be targeted by the get_cpm module.
Image a tag v0.42. Then patch v0.42.1 comes out and the v0.42 tag will be reset to point exactly to the same commit as the v0.42.1. But it will not move to a v0.43.x patch.

As patches usually don't break anything but patches bugs, that should be a preferable behaviour.

@DNKpp DNKpp changed the title Using of moving vMajor.Minor tags Using of dynamically vMajor.Minor tags Dec 31, 2021
@DNKpp DNKpp changed the title Using of dynamically vMajor.Minor tags Using of dynamical vMajor.Minor tags Dec 31, 2021
@DNKpp DNKpp changed the title Using of dynamical vMajor.Minor tags Using of dynamic vMajor.Minor tags Dec 31, 2021
@TheLartians
Copy link
Member

As patches usually don't break anything but patches bugs, that should be a preferable behaviour.

In a perfect world yes, but mistakes are easily made. Tbh I prefer strict versioning as it would guarantee reproducibility in all circumstances. Perhaps an auto-update feature (that would override the version in cmake or in a version lock file) would be nice instead.

@TheLartians TheLartians added the wontfix This will not be worked on label May 21, 2022
@saxbophone
Copy link

Maybe a SEMVER option in CPMFindPackage() that is an alternative to VERSION, and which is an explicit assertion by the user that they trust their upstream dependency follows semantic versioning and they are happy to have the v0.4 binds to v0.4.x behaviour that is mentioned?

@TheLartians
Copy link
Member

In general I think it's a nice idea, however should come together with proper lockfile support so that we can still commit exact versions into our repositories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants