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

Ignore pre-release version part in plugin version requirement validation #1091

Merged
merged 2 commits into from
Feb 2, 2017

Conversation

hairyhum
Copy link
Contributor

Fixes #1090

Pre-release version is considered to be less then its basic version by semver semantics (e.g. 3.7.0-alpha.68 < 3.7.0)
But plugins should be valid for pre-release versions if version requirements contain release version.

Alpha version part is removed during plugin version check to avoid this inconsistency.

is_version_supported(VersionFull, ExpectedVersions) ->
%% Pre-release version should be supported in plugins,
%% therefore alpha part should be removed
Version = remove_version_alpha_part(VersionFull),
Copy link
Member

Choose a reason for hiding this comment

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

Let's use "preview" instead of "alpha."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's called alpha_info in rabbit_semver

Copy link
Member

@michaelklishin michaelklishin Jan 26, 2017

Choose a reason for hiding this comment

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

It's a good opportunity to fix it there. Not all preview versions are alphas.

@gerhard gerhard merged commit 7d30f7f into master Feb 2, 2017
@gerhard gerhard deleted the rabbitmq-server-1090 branch February 2, 2017 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants