Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Forcing installation order using zef

Tags:

module

raku

zef

Lately, installing LWP::Simple requires the prior installation of IO::Socket::SSL, as is shown in this Travis log. However, there does not seem to be a way of forcing zef to install them in that particular order. The only way I can think of is to list it before in the depends section of META6.JSON, but that does not seem to work.

The only slightly related solution I have found is this one, but that does not provide a solution, rather reports an (old and already fixed) bug. Also, dependencies in the different phases (build, for instance) all seem to be blended together and installed in, I guess, dependence first order. So, other than listing IO::Socket::SSL as a dependency in LWP::Simple, or forcing installation via another direct command before, is there any other way to fix this?

like image 379
jjmerelo Avatar asked Oct 16 '18 18:10

jjmerelo


1 Answers

The module author does not get a say towards dependency installation order. A naive solution of doing them in order would not be parallelization friendly.

As to the actual problem of the failing tests -- how is this not a bug in LWP::Simple? The tests clearly fail due to missing IO::Socket::SSL, so either IO::Socket::SSL should be added to its test-depends, or its test should be fixed to not point at a url that forwards to https (before the skip-all test for IO::Socket::SSL is done 4 lines below).

like image 110
ugexe Avatar answered Nov 14 '22 10:11

ugexe