【发布时间】:2020-05-06 02:39:40
【问题描述】:
我从我的私有存储库的本地计算机克隆没有问题,但是,当我想通过 composer 下载文件时,它要求我创建一个 auth.json 文件(我不想要这个,我不想'不想使用令牌)。
你知道为什么会这样吗?
composer.json
"require": {
..
"myname/my-app": "*",
..
},
"repositories": [
{
"type": "vcs",
"url": "git@gitlab.com:myname/my-app.git",
},
]
我尝试添加"no-api": true,我尝试设置dev-master,但失败了。为了测试它,我为 BitBucket 创建了一个存储库,并且安装它没有问题。
我的错误是:
Loading composer repositories with package information
Failed to download myname/my-app:The "https://gitlab.com/api/v4/projects/myname%2Fmy-app" file could not be downloaded (HTTP/1.1 404 Not Found)
Your credentials are required to fetch private repository metadata (git@gitlab.myname/my-app.git)
A token will be created and stored in "/Users/myname/.composer/auth.json", your password will never be stored
To revoke access to this token you can visit gitlab.com/profile/applications
【问题讨论】:
标签: composer-php gitlab