我从私有存储库的本地计算机克隆没有问题,但是,当我想通过 Composer 下载文件时,它要求我创建一个 auth.json 文件(我不想要这个,我也不想使用令牌)。
您知道为什么会发生这种情况吗?
作曲家.json
"require": {
..
"myname/my-app": "*",
..
},
"repositories": [
{
"type": "vcs",
"url": "git@gitlab.com:myname/my-app.git",
},
]
Run Code Online (Sandbox Code Playgroud)
我尝试添加"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 …Run Code Online (Sandbox Code Playgroud)