-
Notifications
You must be signed in to change notification settings - Fork 17
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
Full semantic versioning string is not used within plugin metadata fields #262
Comments
i'm not using the |
Just did some more research. This is the file where the 4.2(.0) version specification is located: It doesn't matter if I lock the version to "4.2.0" or "4.2" in the composer.json file. Only the trunk version is installed. My guess is that there is some incompatibility with the versioning. I see the svn tag is also "4.2.0" but the plugin version is "4.2". |
the plugin version is |
just FYI: WordPress trunk (stable tag points to WordPress tag/4.2.0 - https://plugins.svn.wordpress.org/enlighter/tags/4.2.0/ everything works like expected |
I totally agree. The probleem seems to be with wpackagist. At first I thought there might be some versioning issue which prevents this from happening but everything seems totally fine. I hope wpackagist fixes this. @AndiDittrich This is where the logic is located: I just went through the previous releases of enlighter and before 4.0.0 the version in the plugin file always matched the tag. From version 4.0.0 the last digit is missing from in the plugin file. If it's not a problem for you I'd like to ask if you can match the plugin and tag version. It would solve this issue for everyone that uses wpackagist. I did also mention this in one of the open wpackagist issues so let's hope it get's fixed. |
i can't identify where the plugin is using if this setting is wrong...everything WordPress.org repository would crash... |
I'm sorry I wasn't very clear. I meant these two lines. These lines make that Wordpress.org shows "4.2" and not "4.2.0". wpackagist fetches the plugin details (basically the whole comment section around line 6) and the other available versions (SVN tags). So it fetches So if the plugin docs / version are 4.2.0 instead of 4.2 wpackagist doesn't do the default mapping to trunk and we'll get the correct zip file for version 4.2.0. |
oh f*ck.... thanks for that hint! internally the WordPress.org repo doesn't take much care of the php files...it just extracts the metadata from the i'll update the svn tag itself (i know that's a very bad practice..) asap |
well...that didn't work as expected...the WordPress repo handles it as "new release" |
I'm using composer and wpackagist to install plugins. The 4.2 install breaks the plugin. Only a single readme.txt file is installed.
This is the diff of my
composer.lock
file when updating to 4.2I think some SVN tag was not pushed because reference is now trunk instead of tags/4.2.0 as I would expect. Or maybe the version should be "4.2" instead of 4.2. When I download https://downloads.wordpress.org/plugin/enlighter.4.2.0.zip I get the correct version.
The text was updated successfully, but these errors were encountered: