-
Notifications
You must be signed in to change notification settings - Fork 289
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
x-add-version: add option to automatically commit result #94
base: main
Are you sure you want to change the base?
x-add-version: add option to automatically commit result #94
Conversation
d25433c
to
24aac98
Compare
24aac98
to
fb34ea7
Compare
fb34ea7
to
f20a2a0
Compare
f20a2a0
to
b8018c0
Compare
@BillyONeal can you review the code for |
b8018c0
to
b9baa13
Compare
# Conflicts: # include/vcpkg/vcpkgpaths.h # src/vcpkg/vcpkgpaths.cpp
Sorry I missed this message before. I generally don't think code review is very effective at finding bugs in unit level tests like this; I would prefer to see lexically_relative extracted with unit tests added, then change this function to one that combines with almost_canonical in a way where it need not be unit tested because there are no "interesting conditions", if that makes sense? |
Should lexically_relative check if the given paths are absolute? Or is this simply undefined behavior? |
# Conflicts: # include/vcpkg/base/util.h # src/vcpkg/commands.add-version.cpp
# Conflicts: # src/vcpkg/commands.add-version.cpp # src/vcpkg/vcpkgpaths.cpp
Co-authored-by: Victor Romero <[email protected]>
The standard says that if absoluteness is different or similar that the result is |
Hm I don't want to reimplement the function |
It's OK to implement your own function but if we are naming the function the same name as the standard I think it should do what the standard says unless we can't do that for some reason. (There's a notable exception with some of the copy/copy_file family enums, but in that case we just didn't implement some of the cases we didn't need, we didn't implement something different than what the standard said) |
# Conflicts: # include/vcpkg/base/messages.h # locales/messages.en.json # locales/messages.json # src/vcpkg/commands.add-version.cpp # src/vcpkg/vcpkgpaths.cpp
I think this PR has been in a holding pattern because
If you're still interested in investigating here before we can give you a concrete answer, I can say something that would be uncontroversial would be fixing x-add-version to work with uncommitted changes. (By setting Sorry you've been in a holding pattern for so long |
I thought it would be helpful because you currently always have to do a
after running |
No description provided.