我使用 gitlab 的新功能Composer 包注册表。它工作正常,但使用 auth.json 文件进行身份验证不起作用。
我完成了 gitlab 和作曲家文档中的所有步骤,但没有成功。我尝试将 auth.json 文件存储在composer.json 文件旁边,%APPDATA%/Composer
但没有什么不同。我总是收到相同的错误消息。
https://docs.gitlab.com/ee/user/packages/composer_repository/
https://getcomposer.org/doc/articles/http-basic-authentication.md
如果我在存储库对象的composer.json 文件中使用内联身份验证,它就可以工作。{"repositories": [{"type": "composer", "url": "https://extremely:secret@repo.example.org"}]}
我收到以下错误消息:
C:\path\to\project> composer update -vvv
Reading ./composer.json
Loading config file ./composer.json
Loading config file C:\path\to\project/auth.json
Reading C:\path\to\project/auth.json
Checked CA file C:\Users\user\AppData\Local\Temp\opeD84C.tmp: valid
Executing command (C:\path\to\project\ida.argo.data): git branch --no-color --no-abbrev -v
Reading C:/Users/user/AppData/Roaming/Composer/composer.json
Loading config file C:/Users/user/AppData/Roaming/Composer/composer.json
Running 1.10.10 (2020-08-03 11:35:19) with PHP 7.4.8 on Windows NT / 10.0
Loading composer repositories with package information
Downloading https://gitlab.com/api/v4/group/8835906/-/packages/composer/packages.json
[Composer\Downloader\TransportException]
The "https://gitlab.com/api/v4/group/8835906/-/packages/composer/packages.json" file could not be downloaded (HTTP/
1.1 404 Not Found)
人到中年有点甜
白衣非少年
慕桂英3389331