Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

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

Open
matiaslina opened this issue Feb 17, 2020 · 5 comments · May be fixed by #13
Open

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

matiaslina opened this issue Feb 17, 2020 · 5 comments · May be fixed by #13

Comments

@matiaslina
Copy link

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
Copy link

Scimon commented Feb 25, 2020

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

@matiaslina
Copy link
Author

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
Copy link

JJ commented Apr 26, 2020

Same issue here.

@JJ
Copy link

JJ commented Apr 26, 2020

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

@JJ JJ linked a pull request Apr 26, 2020 that will close this issue
@ugexe
Copy link

ugexe commented Apr 27, 2020

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants