Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am using this docker container to build exercism.io exercises with Travis. My .travis.yml is below:

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"

When running, Travis fails to update the p6c mirror and is unable to find JSON::Fast, thus causing my tests to fail. A snippet of the error is shown below, with the full build logged 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

Is there something I'm missing in my .travis.yml in order to get this working?

like image 392
FlamingSquirrel Avatar asked May 07 '19 19:05

FlamingSquirrel


1 Answers

It should work if you try it again / zef update. JSON::Fast is actually in the cpan ecosystem, but the cpan ecosystem itself has been having issues the last couple of days.

The p6c ecosystem not updating is an unrelated issue (since JSON::Fast is in the cpan ecosystem). That can be corrected by updating zef -- zef install https://github.com/ugexe/zef.git

like image 134
ugexe Avatar answered Nov 06 '22 02:11

ugexe