Comments (10)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
- Services lose get parameters after mirroring HOT 1
- Add FOSSA
- support composer v2? HOT 1
- packagist.hostuj.to down HOT 1
- "do not match its signature" HOT 13
- Will it mirror zip files of packages? HOT 1
- A
- A
- Error - Impossible to create the root directory HOT 4
- Add support to Google Analytics HOT 1
- in progress HOT 1
- Not Downloading Meta information properly HOT 20
- Sync Packes More Frequent. HOT 3
- Build a miror behind a proxy HOT 4
- Warning: failed to open stream: Too many open file HOT 2
- composer install error HOT 3
- How I can use an internal domain ? HOT 13
- Extra dependencies?
- Drop PHP 7.1 support for next release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packagist-mirror.