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

ss88/easy_unsubscribe: package version disagreement between packagist and Roundcube Plugin Repository #35

Closed
emtiu opened this issue Jan 21, 2024 · 4 comments

Comments

@emtiu
Copy link

emtiu commented Jan 21, 2024

The plugin ss88/easy_unsubscribe is listed at:

and both web frontends display SS88UK/roundcube-easy-unsubscribe@3970c08 as the latest dev-master commit.

However, when using composer to install it, the information at https://plugins.roundcube.net/p/ss88/easy_unsubscribe%243eca1312a1595c6ebfe5e178c043d8ac8348a541df6381c8a9aea41b9f62b0d9.json is referenced by composer, which is outdated and lists d09f442 from 2019 as the latest commit.

There must be something weird going on for the Roundcube Plugins web frontend and its actual hosted json version information to disagree.

Because of this, I've found it impossible to install the latest version through composer.

@johndoh
Copy link

johndoh commented Jan 25, 2024

I guess this is related to https://roundcube.net/news/2020/04/11/changes-in-roundcubes-plugin-repository

We’d like to make the switch on May 17th 2020. On this day, the repository data of plugins.roundcube.net will be frozen

It goes on to say

Once a plugin is listed at packagist.org, Roundcube’s plugin repository will no longer list it in order to make packagist.org the only source.

but may be something went wrong? by now all plugins should be listed on packagist.org so if you remove https://plugins.roundcube.net from the repositories list in your composer.json then may be that will solve your issue.

@emtiu
Copy link
Author

emtiu commented Jan 25, 2024

You're right! Removing this section from my composer.json:

"repositories": [
    {
        "type": "composer",
        "url": "https://plugins.roundcube.net"
    }
],

does the trick and updates easy_unsubscribe to the latest commit (with no ill side-effects I noticed).

But then why is that repo still part of the official composer.json-dist? 🤔

@johndoh
Copy link

johndoh commented Jan 25, 2024

may be because there is only the dev-master version of this plugin and plugins.roundcube.net has that version then composer uses it because its listed in your repositories list.

where as if there was a newer version of the plugin release. like plugins.roundcube.net had version 1.1 as its most recent version and packagist.org had a version 1.2 then it would automatically take the newer version? its just a guess.

any way I agree it might be time to take the old repo out of composer.json-dist. I opened roundcube/roundcubemail#9323

@emtiu
Copy link
Author

emtiu commented Aug 5, 2024

Roundcube hast removes https://plugins.roundcube.net from its composer.json now: roundcube/roundcubemail@6ace57e … so I guess this problem will go away in time :)

@emtiu emtiu closed this as completed Aug 5, 2024
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

No branches or pull requests

2 participants