jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Packagist

Open peterhough opened this issue 11 years ago • 11 comments

Could Jetpack be submitted to http://packagist.org?

I am using the Bedrock to develop Wordpress installations, this uses Composer to manage dependencies. I can see Jetpack already has a composer.json file but it is not listed in Packagist: https://packagist.org/packages/automattic

This would avoid the need to manually add the repository:

"repositories": [
    {
      "type": "git",
      "url": "https://github.com/Automattic/jetpack"
    }
]

peterhough avatar May 20 '15 09:05 peterhough

I don't have an immediate answer re packagist, but have you seen http://wpackagist.org/ ? It is a mirror of the w.org plugins repo as Composer packages.

kraftbj avatar May 20 '15 10:05 kraftbj

@xyu - the only Automattic package appears to have been added by you. Do you have access to add JP?

kraftbj avatar May 21 '15 04:05 kraftbj

I've just added Jetpack to Packagist, I don't believe there is any sort of "authentication" per say so anyone could have added Jetpack. However before it's actually useful we will need to include a composer.json file in this repo to define maintainers and prerequisites.

As a sidenote, personally I use http://wpackagist.org for WordPress plugins as they crawl the .org repo and automagically exposes all of the plugins available to composer.

E.g.: https://github.com/xyu/heroku-wp/blob/master/composer.json

xyu avatar May 21 '15 15:05 xyu

Thanks for adding Jetpack to Packagist and thanks for the tip about http://wpackagist.org I wasn't aware of that :+1:

peterhough avatar May 21 '15 16:05 peterhough

FYI - on Packagist, it blocked me from adding Jetpack last week since there was already a package listed with the same vendor ("Automattic"), so there is some type of authentication check.

kraftbj avatar May 26 '15 14:05 kraftbj

@xyu @sirbrillig Is it possible to check if Packagist auto-publishing is well configured? The auto-publishing feature is supposed to update Packagist registration as soon as a new tag is added to the git repo, but 6.7 is still not published (and it's not the first time).

Thanks!

LeoColomb avatar Nov 27 '18 15:11 LeoColomb

Thanks for the heads-up! I pressed "Update" on the Packagist page, which seems to have updated it for now.

Github is disabling their "services" hooks, so we need to configure the new Packagist auto-updater so it will work in the future. One of the requirements is for Packagist to be granted access to the Automattic repo, and that permission reads

Access request pending.

I have a feeling that whoever runs the Automattic Github organization does not usually approve access requests. We should probably try to figure out who that is and see if we can grant it in this case, otherwise I don't think we can get auto-updates to work properly.

In the mean time I tried setting up a manual webhook with my key, but I'm not sure if it worked or not. The Packagist repo still shows the same warning, but I guess we'll find out when the next release happens.

sirbrillig avatar Nov 27 '18 15:11 sirbrillig

We should probably try to figure out who that is and see if we can grant it in this case, otherwise I don't think we can get auto-updates to work properly.

Paging @mdawaffe, who should be able to help us here I think.

jeherve avatar Nov 27 '18 15:11 jeherve

This issue has been marked as stale. This happened because:

  • It has been inactive in the past 6 months.
  • It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`.

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

stale[bot] avatar May 26 '19 16:05 stale[bot]

jeherve commented on Nov 27, 2018

Huh. I forgot all about this, obviously. Do we still need to do anything here?

mdawaffe avatar May 26 '19 18:05 mdawaffe

The webhook appears to work well now, our plugin updates are published properly:

https://packagist.org/packages/automattic/jetpack

Closing this.

jeherve avatar May 27 '19 08:05 jeherve