sergot / IO-Capture-Simple

IO can be captured.
3 stars 8 forks source link

zef install fails with "Could not find IO::Capture::Simple" #12

Open matiaslina opened 4 years ago

matiaslina commented 4 years ago

Running zef install IO::Capture::Simple fails due not finding IO::Capture::Simple.

% zef install IO::Capture::Simple
===> Searching for: IO::Capture::Simple
===> Testing: IO::Capture::Simple
[IO::Capture::Simple] ===SORRY!=== Error while compiling /home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab/t/stderr.t
[IO::Capture::Simple] Could not find IO::Capture::Simple in:
[IO::Capture::Simple]     file#/home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab
[IO::Capture::Simple]     inst#/home/matias/.raku
[IO::Capture::Simple]     inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/site
[IO::Capture::Simple]     inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/vendor
[IO::Capture::Simple]     inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/core
[IO::Capture::Simple]     ap#
[IO::Capture::Simple]     nqp#
[IO::Capture::Simple]     perl5#
[IO::Capture::Simple] at /home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab/t/stderr.t:1
[IO::Capture::Simple] ===SORRY!=== Error while compiling /home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab/t/stdout.t
[IO::Capture::Simple] Could not find IO::Capture::Simple in:
[IO::Capture::Simple]     file#/home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab
[IO::Capture::Simple]     inst#/home/matias/.raku
[IO::Capture::Simple]     inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/site
[IO::Capture::Simple]     inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/vendor
[IO::Capture::Simple]     inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/core
[IO::Capture::Simple]     ap#
[IO::Capture::Simple]     nqp#
[IO::Capture::Simple]     perl5#
[IO::Capture::Simple] at /home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab/t/stdout.t:1
[IO::Capture::Simple] ===SORRY!=== Error while compiling /home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab/t/test-io-capture/01-basic.t
[IO::Capture::Simple] Could not find Test::IO::Capture in:
[IO::Capture::Simple]     file#/home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab
[IO::Capture::Simple]     inst#/home/matias/.raku
[IO::Capture::Simple]     inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/site
[IO::Capture::Simple]     inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/vendor
[IO::Capture::Simple]     inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/core
[IO::Capture::Simple]     ap#
[IO::Capture::Simple]     nqp#
[IO::Capture::Simple]     perl5#
[IO::Capture::Simple] at /home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab/t/test-io-capture/01-basic.t:1
===> Testing [FAIL]: IO::Capture::Simple
Aborting due to test failure: IO::Capture::Simple (use --force-test to override)

This only happens installing from a remote source. It installs fine locally:

% git clone https://github.com/sergot/IO-Capture-Simple.git
Cloning into 'IO-Capture-Simple'...
remote: Enumerating objects: 167, done.
remote: Total 167 (delta 0), reused 0 (delta 0), pack-reused 167
Receiving objects: 100% (167/167), 17.70 KiB | 341.00 KiB/s, done.
Resolving deltas: 100% (35/35), done.
[/tmp]
% cd IO-Capture-Simple/
[/tmp/IO-Capture-Simple]
% zef install .
===> Testing: IO::Capture::Simple
===> Testing [OK] for IO::Capture::Simple
===> Installing: IO::Capture::Simple
Scimon commented 4 years ago

I think it might be a file extension issue. The .pm extension is deprecated now, might be confusing zef for testing.

matiaslina commented 4 years ago

I don't think that is an extension problem (saw this issue on the HTTP::Status module and the module have the pm6 extension). Although the extensions should be changed to .rakumod.

Anyway I can do a pull request to change the extensions to rakumod to see if that's the problem or not.

JJ commented 4 years ago

Same issue here.

JJ commented 4 years ago

it does not fail when installed locally. Must be something in the library layout...

ugexe commented 4 years ago

Its the same issue its been for the last year -- some modules switched from using META.info to META6.json without bumping their version, thus your local cache probably has the variant with a META.info (which support was dropped awhile ago).