question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support any composer-type repository

See original GitHub issue

I tried to use this plugin to connect to Packagist (ok) and to Drupal 8 composer repository (ko).

After a small investigation, the plugin tries to download the file packages/list.json and this file seems to be a specificity of packagist.org.

The packages.json file contains the links to the provider files. The provider files contains the list of the packages and their signatures. The provider files are the ones used by composer.

The packages/list.json has the list of the available packages of packagist.org but it looks like it’s not used at all by composer, nor it’s provided by Drupal 8’s repository.

To solve this issue, we should :

  • update the method generatePackagesJson in the class ComposerProxyFacetImpl to only use the providers
  • don’t use the constant PROVIDER_JSON in the ComposerProxyFacetImpl class, instead use the value provided by the packages.json file
  • handle the case when a provider is not available anymore (it seems to be the case for old versions of providers)

Some technical details

The entry point is the packages.json file. Examples :

The packages.json file contains a providers-url and a provider-includes entries.

The providers-includes entry list all the files containing the list of repositories. Examples :

The providers-url contain the format to use to download the description of a specific package. The required informations (%package% and %hash%) are available in the provider file described above. Examples :

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:4
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ludwiscommented, Apr 15, 2022

Hi, will this issue get some traction any time soon?

0reactions
CelesteGHcommented, Aug 6, 2021

Still no news ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Repositories - Composer
The main repository type is the composer repository. It uses a single packages.json file that contains all of the package metadata. This is...
Read more >
Support composer packages in repositories with type path
I have some end-projects with embedded private PHP packages in a project. These private packages are declared in composer.json file in ...
Read more >
Composer: How to use Git repositories - Daggerhart Lab
Require Any Git Repository with Composer · url – The Git (or other VCS) URL where the package repo can be found. ·...
Read more >
PHP Composer Repositories - JFrog Documentation
Overview · Provisioning Composer packages from Artifactory to the Composer command line tool from all repository types. · Calculation of metadata ...
Read more >
The concept of composer packages and repositories
Composer Repositories : The main repository type is the composer repository. It uses a single package.json file where all the package ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found