Zef 无法安装 JSON::Fast when 运行 in Travis with Docker

Zef fails to install JSON::Fast when running in Travis with Docker

我正在使用 this docker 容器与 Travis 构建 exercism.io 练习。我的.travis.yml如下:

language:
  - minimal

services:
  - docker

install:
  - docker pull jjmerelo/test-perl6

script: docker run -t --entrypoint="/bin/sh" -v $TRAVIS_BUILD_DIR:/test jjmerelo/test-perl6 -c "zef install JSON::Fast && prove -r --exec=perl6 perl6"

当运行时,Travis更新p6c镜像失败,无法找到JSON::Fast,导致我的测试失败。下面显示了错误的片段,记录了完整的构建 here.

===> Searching for: JSON::Fast
===> Updating cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Updating p6c mirror: http://ecosystem-api.p6c.org/projects1.json
===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
!!!> Failed to update p6c mirror: http://ecosystem-api.p6c.org/projects1.json
===> Updating p6c mirror: http://ecosystem-api.p6c.org/projects.json
!!!> Failed to update p6c mirror: http://ecosystem-api.p6c.org/projects.json
===> Updating p6c mirror: git://github.com/ugexe/Perl6-ecosystems.git
===> Updated p6c mirror: git://github.com/ugexe/Perl6-ecosystems.git
No candidates found matching identity: JSON::Fast

我的 .travis.yml 中是否缺少某些东西才能使它正常工作?

如果您再试一次,它应该会起作用/zef updateJSON::Fast 实际上在 cpan 生态系统中,但 cpan 生态系统本身最近几天一直存在问题。

p6c 生态系统不更新是一个不相关的问题(因为 JSON::Fast 在 cpan 生态系统中)。这可以通过更新 zef 来纠正——zef install https://github.com/ugexe/zef.git