summaryrefslogtreecommitdiff
path: root/composer-add-aliyun-repository.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-08-07 14:59:22 +0000
committerCoprDistGit <infra@openeuler.org>2023-08-07 14:59:22 +0000
commitb83ed80c2d2a81a9deb4e94941614de1c06c54ed (patch)
treed9f48aa14347fab3bccbaeadf0637bef40869456 /composer-add-aliyun-repository.patch
parent65210619ddddc63cfd053eb089a839d1d0e68e04 (diff)
automatic import of composer
Diffstat (limited to 'composer-add-aliyun-repository.patch')
-rw-r--r--composer-add-aliyun-repository.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/composer-add-aliyun-repository.patch b/composer-add-aliyun-repository.patch
new file mode 100644
index 0000000..f5bc1c2
--- /dev/null
+++ b/composer-add-aliyun-repository.patch
@@ -0,0 +1,14 @@
+--- a/src/Composer/Config.php.orig 2023-02-25 11:59:19.951057271 +0800
++++ b/src/Composer/Config.php 2023-02-25 12:03:48.490871158 +0800
+@@ -86,6 +86,11 @@
+
+ /** @var array<string, mixed> */
+ public static $defaultRepositories = [
++ 'aliyun.com' => [
++ 'type' => 'composer',
++ 'url' => 'https://mirrors.aliyun.com/composer/',
++ 'canonical' => false,
++ ],
+ 'packagist.org' => [
+ 'type' => 'composer',
+ 'url' => 'https://repo.packagist.org',