4Manuals

  • PDF Cloud HOME

作曲家缓存不适用于bitbucket管道构建 Download

    尝试使用unix:///var/run/docker.sock 碳日期差异方法在Laravel 5.7中给出了错误的日期差异 如何在多用户的Mac上设置我的docker gitlab数据文件夹? 如何使用PHP将https错误状态设置为404,以便可以通过.htaccess文件处理? 通过dropzone laravel通过电子邮件发送多个图像 如何使用docker文件中的curl在容器中发布json文件 Symfony 3.4安装新软件包时发生冲突 通过键合并两个数组,并将值附加到另一个数组中 电子邮件字段为空 如何在TCPDF中添加Jameel Noori Nastaleeq字体?

我在我的Bitbucket管道中得到了这个

pipelines:
  branches:
    develop:
    - step:
        caches:
          - composer
        name: unit tests - Delivery 
        image: totersapp/laravel-docker:phpredis
        script:
        - echo "memory_limit=512M" > /usr/local/etc/php/conf.d/memory-limit-php.ini
        - ln -f -s .env.pipelines .env
        - composer install 
        services:
        - postgres
        - redis

每次运行时,它都会下载相同的文件(即使在第二次运行时)。为什么有什么主意?

这是作曲家安装的日志:

+ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 199 installs, 0 updates, 0 removals
  - Installing kylekatarnls/update-helper (1.2.0): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing ocramius/package-versions (1.4.2): Downloading (connecting...)Downloading (0%)           Downloading (30%)Downloading (35%)Downloading (65%)Downloading (95%)Downloading (100%)
  - Installing symfony/polyfill-ctype (v1.13.1): Downloading (connecting...)Downloading (0%)           Downloading (100%)

1 个答案:

答案 0 :(得分:0)

根据a question on the Bitbucket forums,如果您使用的Docker映像将下载的文件放置在异常位置,则可能发生这种情况。根据{{​​3}},缓存的通常目录是~/.composer/cache,而the documentation about caches使用/composer。

请尝试使用以下配置:

pipelines:
  branches:
    develop:
    - step:
        caches:
          - composer: /composer/cache



Similar searches
    将转化归因于Google Analytics(分析)中不同会话的渠道的默认时间是多少? 返回数字x的前n个倍数 如何停止/终止融合的JDBC源连接器? MVC路由不起作用C#后端React前端 将多个列表添加到一列DataFrame熊猫中