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

#114 skip pre-release versions when picking the last minor release #118

Conversation

Ocramius
Copy link
Member

Fixes #114
Fixes #117

schmunk42 and others added 3 commits February 11, 2019 12:56
Previous assertion was expecting latest *patch* release, which isn't
what the `PickLastMinorVersionFromCollection` system is supposed to do.
…ection logic

Pre-releases are not to be considered for default stability checks.
@@ -28,6 +28,7 @@ public function lastStableMinorVersionForCollectionProvider() : array
['2.2.0', ['1.2.0', '2.2.0', '2.2.1', '1.2.1']],
['2.2.0', ['1.2.0', '2.2.0', '2.2.0-alpha1', '2.2.1', '1.2.1']],
['2.2.0', ['1.2.0', '2.2.0-alpha1', '2.2.0', '2.2.1', '1.2.1']],
['2.6.0', ['1.1.1', '3.0.0-alpha1', '2.7.0-beta1', '2.6.2', '2.0.0', '2.6.1', '2.6.0']],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be 2.6.2?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've explicitly changed it in 33e851f (see commit message)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, didn't get the "lastMinorVersion" thingy....

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's alright - it was a design decision :-)

Copy link
Member

@asgrim asgrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, yes this should've been caught earlier, thanks @schmunk42 and @Ocramius

@asgrim asgrim merged commit aefb49b into master Feb 11, 2019
@asgrim asgrim deleted the fix/#114-pick-last-minor-version-from-collection-fails-with-alpha-versions branch February 11, 2019 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants