Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about blocked address for dst download url. #11

Closed
wudi opened this issue Aug 7, 2018 · 5 comments
Closed

Question about blocked address for dst download url. #11

wudi opened this issue Aug 7, 2018 · 5 comments

Comments

@wudi
Copy link

wudi commented Aug 7, 2018

Seek solutions.

As we know the mirror only download metadata with JSON file.
Passed the first step, then download zipball for code from dst field in metadata.
But the dst download url blocked too in China. eg. https://api.github.com/xx

Can your have some solutions for the case?

@webysther
Copy link
Owner

webysther commented Sep 9, 2018

Actually no. But this mirror create a github api proxy (mirror?) too, look the code here:

https://github.com/jinfeijie/packagist-mirror/pull/10/files

The mirror: https://php.composer.jinfeijie.cn/

You not fixed yeat?

@webysther
Copy link
Owner

Hi @wudi, any news?

@wudi
Copy link
Author

wudi commented Nov 16, 2018

Actually no. But this mirror create a github api proxy (mirror?) too, look the code here:

https://github.com/jinfeijie/packagist-mirror/pull/10/files

The mirror: https://php.composer.jinfeijie.cn/

You not fixed yeat?

this bad idea. because it will occur invalid hash of json file.
i had write a script to rehash all json file.

Steps:

  • replace domain in package$hash.json
  • get new hash package json
  • replace old hash to new in providers-xx.json
  • get new hash of providers-xx.json
  • replace old hash to new in top packages.json

@wudi wudi closed this as completed Nov 22, 2018
@webysther
Copy link
Owner

webysther commented Feb 1, 2019

After consideration about China block keep this issue open to plan how to do this as a simple option. Thanks @wudi

Any ideias of @klzsysy @jinfeijie @cnpkg are very welcome! :)

@webysther
Copy link
Owner

Global CDN you be a more simple and fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants