GithubHelp home page GithubHelp logo

Comments (10)

peter279k avatar peter279k commented on June 27, 2024 1

For now, I don't figure out the current way to migrate composer/mirror to this packagist-mirror because the composer/mirror is simpler and more different than packagist-mirror.

Maybe we can use php bin/mirror create -v2 -vvv or php bin/mirror create -v1 -vvv to create different metadata version?

Please suggest some recommendations about this. Thanks.

from packagist-mirror.

Seldaek avatar Seldaek commented on June 27, 2024 1

Well IMO the entire mirroring script here should be replaced by the composer/mirror logic. As per the setup instructions, you should run all 3 commands to produce a mirror which supports composer 1 and 2. If you only want v2 you can skip the --v1 command and set has_v1_mirror to false in the config.

I am not familiar with the code in this repo, nor how bin/mirror works, but right now the mirror in south africa advertises v2 metadata by defining a metadata-url but it doesn't actually have the data files present, so it breaks. It should at least remove metadata-url if v2 is not fully supported, so that composer 2 can still rely on the v1 metadata files and keep working.

from packagist-mirror.

webysther avatar webysther commented on June 27, 2024

Of course, I will change to use them.

An unexpected effect of creating this mirror is the fact that it has become an alternative in places where internet access is restricted, not just the ability to parallelize, as is the case in China with the great firewall of china.

I asked this a while ago, would you have the documented specification of the metadata structure?

from packagist-mirror.

Seldaek avatar Seldaek commented on June 27, 2024

The v2 metadata is much simpler, two files per package ($name~dev.json for dev versions and $name.json for the rest), and mostly documented in https://github.com/composer/composer/blob/master/UPGRADE-2.0.md#for-composer-repository-implementors - but it's also fully implemented by the mirroring script code and packagist.org, so unless you're serving your own packages, you don't really need to care just for process of mirroring.

from packagist-mirror.

webysther avatar webysther commented on June 27, 2024

Do you think it is better to update the code to use this script or archive this project and suggest using the new repository?

from packagist-mirror.

Seldaek avatar Seldaek commented on June 27, 2024

I don't know how much effort it is for you to migrate.. And I don't know how much people need/care about the "homepage" aspect of this repo. My thing is really just a background worker to mirror files. So I wouldn't say it replaces all of this repo.. That's why I thought maybe it'd be good to continue having this as a sample homepage for mirrors that they can tweak as needed.

from packagist-mirror.

webysther avatar webysther commented on June 27, 2024

I need a few days to offer support, I will follow closely the evolution of composer v2, congratulations! I am very happy with the evolution.

If you want to migrate this repository in the future, we can talk to make a plan for it, it is up to you.

from packagist-mirror.

peter279k avatar peter279k commented on June 27, 2024

I'm interested in migrating original packagist-mirror to composer/mirror script.

I want to know current works about that and binding above two mirrors together successfully :).

from packagist-mirror.

webysther avatar webysther commented on June 27, 2024

Hi @peter279k please start a PR, because covid the country I live was huge impacted and my time is focus on my current job, I appreciate help. :)

from packagist-mirror.

Seldaek avatar Seldaek commented on June 27, 2024

Any progress here? As per composer/composer#9297 it seems that currently this repo generates invalid repositories for Composer 2.

from packagist-mirror.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.