【问题标题】:Satis - not able to auth repositorySatis - 无法验证存储库
【发布时间】:2013-10-08 12:47:10
【问题描述】:

我已按照http://getcomposer.org/doc/articles/handling-private-packages-with-satis.md 的说明设置了 Satis。

我来了

php bin/satis build satis.json ./

但随后出现以下错误:

 [Composer\Downloader\TransportException]                                                                                           
  The 'https://bitbucket.org/api/1.0/repositories/companyName/myPackageName/tags' URL could not be accessed: HTTP/1.1 403 FORBIDD  
  EN  

我猜这是因为它是一个私有存储库。有谁知道如何解决这个问题?

我的 satis.json:

{
    "name": "Name Of Package",
    "homepage": "https://bitbucket.org/companyName/packageName",
    "repositories": [
        { "type": "vcs", "url": "https://bitbucket.org/companyName/packageName" }
    ],
    "require-all": true
}

【问题讨论】:

    标签: composer-php satis


    【解决方案1】:

    我想您在本地计算机上,您已经可以访问该 bitbucket 存储库。

    使用存储库中使用的相同 URL 作为 bitbucket 远程位置。如果 HTTPS 不起作用,请尝试 SSH。

    请注意,您必须在本地计算机上运行 Satis 更新。如果其他机器应该运行它,这台机器也需要对 bitbucket 存储库进行身份验证访问。根据您的需要,您可以在该机器上共享您的私钥,或者创建一个新的只读帐户(Satis 不需要编写)。

    【讨论】:

    • 我正在从外部服务器运行它,我现在将可能的 satis.json 文件添加到我原来的问题中......
    猜你喜欢
    • 1970-01-01
    • 2015-12-09
    • 1970-01-01
    • 2014-10-19
    • 2021-12-13
    • 2011-10-25
    • 1970-01-01
    • 1970-01-01
    • 2013-03-25
    相关资源
    最近更新 更多