Page MenuHomePhabricator

Composer packages.json generator
Closed, WontfixPublic

Description

Hello

I'm searching since several hours now how to generate easely a packages.json with phabricator. Looks like this basic thing isn't possible and this is really annoying as we have a lot of internal packages with dependencies to manage, and it is really hard to configure composer with each dependency. It's why we are finding a way to do that.

The generator should build a packages.json file that take all packages repositories and tags and generate the related graph.

If this file could be auto-generated and accessible at the root of project, it will be awesome. Like this the only thing to add in our composer.json will be :

"repositories":[
    {"url":"https://phabricator.url", "type":"composer"}
],

And this will call "https://phabricator.url/packages.json"

If this feature exists please tell me how to use it.

Event Timeline

nervus70 created this task.Apr 21 2017, 5:06 PM
epriestley closed this task as Wontfix.Apr 21 2017, 5:20 PM
epriestley claimed this task.
epriestley added a subscriber: epriestley.

This isn't a good fit for the upstream.

See also T6012.

ftdysa added a subscriber: ftdysa.Apr 21 2017, 5:27 PM

@nervus70, I use satis to do this and it works fine with phabricator. You should easy be able to use https://secure.phabricator.com/api/diffusion.repository.search to generate the satis config if you have a ton of repos.

@nervus70, I use satis to do this and it works fine with phabricator. You should easy be able to use https://secure.phabricator.com/api/diffusion.repository.search to generate the satis config if you have a ton of repos.

I will investigate this way.

Thank you very much