Is there a way to redirect users to packagist version instead of using wpackagist? #278
Replies: 6 comments
-
Unfortunately we only support SVN tags at this time, as this is what wordpress.org uses in its plugin directory. Am I right in thinking that previous releases aren't tagged in your SVN repository? If so, you may need to manually tag old releases. |
Beta Was this translation helpful? Give feedback.
-
Yes, we avoid pushing old tags to svn. We prefer to manage through git and packagist. I’d recommend offering some CLI output or something when plugins in the WP repo would prefer for users to use a different composer repo. |
Beta Was this translation helpful? Give feedback.
-
@jtsternberg Any reason why you don't want to push to the SVN tags? It would surely be a minor change to any automation you currently have in place. I think you're breaking other things than just WPackagist with your current approach, as the wporg repo has no way of preserving old versions of plugins if you just commit to I'm not actually sure a repo can even send a message to the user, I thought that could only be handled on the package level via |
Beta Was this translation helpful? Give feedback.
-
The only things breaking are the things which are relying on the svn tag structure, which we don't maintain. We maintain a git tag structure. Saying "it would surely be a minor change" to another open-source maintainer is a bit ironic. It's a bit like saying "wpackagist honoring plugins which host their composer package with packagist would surely be a minor change". It's certainly possible it's minor. |
Beta Was this translation helpful? Give feedback.
-
WordPress plugins are very much tied to the SVN version control system, as this is how Wordpress.org maintains their plugin database. WPackagist uses the https://plugins.svn.wordpress.org/ endpoint to retrieve all plugins and their versions, and as far as I know there is no Git equivalent. Ideally Wordpress.org would provide this – it would indeed make Git version support in WPackagist trivial. We could potentially search https://packagist.org for packages with the same name as the WordPress plugin, and include the versions found there in WPackagist, but this would be a major new feature, and may not be particularly reliable. As for displaying a message to a user if the package should use the https://packagist.org repository – I'm not sure how this could be done by WPackagist. Looking at this composer issue, it seems like composer doesn't support running One way this issue could be "solved" is by embedding the packagist.org repository in the information returned by the WPorg client. You could do this by tagging your plugin on WPorg with |
Beta Was this translation helpful? Give feedback.
-
@jtsternberg I can't find the code where (if?) you automate syncing between Git and SVN, but the entire task would be to copy the trunk into Something like:
I think, you are not making a serious argument if you compare the above with implementing an entirely new featureset in this project, but I invite you to try to do it with a one-liner. 😆 |
Beta Was this translation helpful? Give feedback.
-
We actively manage the CMB2 packagist repo and occasionally have issues with users who are using wppackagist. Do you provide any solution to this issue?
Beta Was this translation helpful? Give feedback.
All reactions