-
Notifications
You must be signed in to change notification settings - Fork 59
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
Picking last minor release vs. the last release #307
Comments
This should IMO have been where the new API method is introduced? |
Reading the whole thing, I think it makes sense to compare BC against the latest patch, instead of the latest minor. The initial idea I had when developing this library is that:
In fact though, if BC is incrementally maintained between patch releases too, that shouldn't be a problem. |
Yeah, I guess I'd sleep calmer if HEAD was always compared against the latest release, be it major, minor, or even patch :) |
Maybe make it an option? |
Imo `--from` covers that, and git+bash can do the rest
…On Sat, May 29, 2021, 11:25 James Titcumb ***@***.***> wrote:
Maybe make it an option? --compare-against-latest-patch,
--compare-against-latest-minor, etc.?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#307 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABFVEHSILG2WNJNPS6Y4I3TQCXH5ANCNFSM45WXCZUQ>
.
|
I'm targeting this for |
Not going to be able to drag this into |
Looking back at this, I can imagine that:
I suggest changing the defaults of this library from checking the latest minor release to checking the base of the current PR (which will probably require looking at the current environment variables, probably), or |
Yes, I observed this where I'm using |
Yup, and also, nothing denies providing a |
I removed the milestone for now, since I released |
Hey @Ocramius, can we change this tool to pick the latest release? There's a case, for example, when methods were added to a class by mistake (from a trait) and weren't meant to be used in the class at all. Looking from a clear technical perspective, this is of course a BC break, but looking from practical usage, the methods are meaningless and can be fixed (removed) in a patch. |
@michael-rubel see #307 (comment) Feel free to send a patch for the next major. |
@Ocramius looks like @ondrejmirtes already done that in his fork. Should I resubmit that as a separate PR? |
Sure 👍 |
I'll change the target branch before merging :) |
Handled in #687 |
Hi,
I just noticed an oddity in the logic - the tool compares current HEAD against the last minor release, meaning even if there's 2.2.5, it will compare HEAD against 2.2.0.
I think this will lead to not noticing BC breaks between patch versions.
Let's say I add a new method in 2.2.1. Because the method does not exist in 2.2.0, the tool will consider it as a new method in the current HEAD when getting ready to release 2.2.5. Which means that if I add a new required argument between 2.2.4 and 2.2.5, I just caused a BC break for users that started relying on the method meanwhile (between 2.2.1 and 2.2.4).
I know that patch versions are for bugfixes only, but I can imagine a scenario where adding a new method can be interpreted as part of a bugfix...
Is there something I'm not seeing? Thanks!
The text was updated successfully, but these errors were encountered: