-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[sqlite-modern-cpp] update #37563
Merged
BillyONeal
merged 6 commits into
microsoft:master
from
darrenbane-fc:sqlite-modern-cpp-update
Mar 29, 2024
Merged
[sqlite-modern-cpp] update #37563
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3fb6382
update version of sqlite-modern-cpp
darrenbane-fc f44a222
vcpkg x-add-version
darrenbane-fc 71096f6
Merge remote-tracking branch 'origin/master' into HEAD
BillyONeal 1b89325
Change to version-string.
BillyONeal 65274fa
Merge remote-tracking branch 'origin/master' into HEAD
BillyONeal cb4f38b
Change to version-date
BillyONeal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a problem because the new version does not sort after the old version. (That is,
3.2-936cd0c8#2
>3.2-6e300997#0
)See https://semver.org/#spec-item-11
Should this port use
version-string
instead?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BillyONeal what keeps us from using
+
(instead of-
) AND increasing the port number?(None of the
3.2-xxx
versions is sorted after3.2
.)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing technically although there's no benefit to doing so over using version-string at that point, since any conflicts of build metadata must be resolved with overrides.
Yikes! 😭😭😭😭😭
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought there is a benefit, and no conflict, when
version
3.2
and3.2-foo
are equal, but3.2-foo
carries the higherport-version
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I'm a first-time contributor, but is there a concrete change you require before merge? From reading the semver spec it looks like '+' should have been used, but it's certainly a bad idea to change historic versions (that people might depend on). Should I change this 6e30... update only to use '+'? This means it will sort at the same position as "3.2", is that ok? I'm not quite sure why sorting is so important here, I thought real usage of vcpkg would lock to a particular dependency version.
Also, from my reading I don't particularly see a benefit of using "version-string", the above behaviour for "version" seems reasonable?
Finally, I can increment port-version to "3" instead of resetting it back to 0, but I thought that it was supposed to reset when "version" changed, i.e. any sorting by port-version was within the individual "version". Is this correct?
Thanks for the help. I thought I was doing the right thing by copying what was there before, but it seems there are some problems there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No,
3.2
>3.2-anything
. Sort order of whatversion
says happens beforeport-version
.The point of
version-string
rather thanversion
here is that it tells vcpkg that the versions are not orderable, and that if a conflict is encountered users need to resolve the conflict with overrides.Consider Port A:
and B:
and C:
and
vcpkg install A B C
, vcpkg will choose3.2
(no suffix)."version"
tells vcpkg "you can order these according to semver rules", and semver rules say "anything with a - sorts before anything without" and "versions which both have - sort the part after the - lexicographically", and 9 > 6. So vcpkg currently thinks the order is:but the port author wanted the order to be:
Using
"version-string"
would instead tell vcpkg "you should not try to order these versions", and givenvcpkg install A B C
it would fail and prompt the user to pick the version they want.Your resetting of
port-version
when changingversion
is correct here. The user is getting different sources so the version should change, not only theport-version
.Yeah, sorry this was missed before :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to make our explanation from the tool better over here: microsoft/vcpkg-tool#1367
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, after reading that I understand why "version-string" is what should be used here. And I see you changed that now.
I think that's as good as we can do then, is it? Is there anything else that would block a merge?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternately, it looks like upstream has decided to stop doing releases; 3.2 is from 2017.
As a customer of this thing, would you find switching to version-date entirely reasonable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fairness 2018 ( 80f64c2 ) was a different time long before we had strong versioning support :)