我有一个composer文件试图从这样的私有github repo中获取一个压缩文件.
{
"name" : "myproject/project",
"type" : "project",
"authors" : [
{
"name" : "testauthor"
}
],
"repositories": [
{
"type": "package",
"package": {
"name": "tespackages/package1",
"type": "wordpress-plugin",
"version": "2.0",
"dist": {
"url": "https://github.com/myprivaterepo/myfile.zip",
"type": "zip"
}
}
}
],
"require": {
"tespackages/package1" : "2.0"
},
"config": {
"github-oauth": {
"github.com" : "myprivatereposshkey"
}
}
}问题是,由于zip无法访问它,所以它正在返回一个404错误。我曾假设使用github-oauth命令会授予它访问权,但在本例中则不然。
我哪里出问题了?
发布于 2022-10-18 20:55:22
https://stackoverflow.com/questions/74098110
复制相似问题