ugexe / zef

Raku Module Management
Artistic License 2.0
207 stars 44 forks source link

Apparently 'zef list --installed' lists uninstalled modules #459

Open frithnanth opened 2 years ago

frithnanth commented 2 years ago

I know this is a local problem of mine, since I haven't seen any mention of this anywhere. Here is what I see if I try to uninstall a module, but I get the same result when I try to uninstall other modules:

$ zef list --installed|grep CBOR
===> Found via /opt/rakudo-pkg/share/perl6/core
===> Found via /home/nando/.raku
CBOR::Simple:ver<0.1.1>:auth<zef:japhb>:api<0>
CBOR::Simple:ver<0.1.2>:auth<zef:japhb>

$ zef uninstall 'CBOR::Simple:ver<0.1.1>:auth<zef:japhb>:api<0>'
===> Uninstalled from /home/nando/.raku
CBOR::Simple:ver<0.1.1>:auth<zef:japhb>:api<0>

$ zef list --installed|grep CBOR
===> Found via /opt/rakudo-pkg/share/perl6/core
===> Found via /home/nando/.raku
CBOR::Simple:ver<0.1.1>:auth<zef:japhb>:api<0>
CBOR::Simple:ver<0.1.2>:auth<zef:japhb>

$ raku -e 'use CBOR::Simple:ver<0.1.1>:auth<zef:japhb>:api<0>'
===SORRY!=== Error while compiling -e
Could not open /home/nando/.raku/sources/983E0FAFB758220B170D33A30493A316F0805F75. Failed to stat file: no such file or directory

at -e:1

$ raku --version
Welcome to Rakudo™ v2022.07.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2022.07.
$ zef --version
v0.13.8

Since it appears to be a local problem I can't see any way to reproduce it.

ugexe commented 2 years ago

Does it work if you zef uninstall CBOR::Simple (which will uninstall all versions)?

frithnanth commented 2 years ago

Weirder and weirder:

$ zef uninstall CBOR::Simple
===> Uninstalled from /home/nando/.raku
CBOR::Simple:ver<0.1.2>:auth<zef:japhb>
CBOR::Simple:ver<0.1.1>:auth<zef:japhb>:api<0>

$ zef list --installed|grep CBOR
===> Found via /home/nando/.raku
===> Found via /opt/rakudo-pkg/share/perl6/core
CBOR::Simple:ver<0.1.1>:auth<zef:japhb>:api<0>

$ raku -e'use CBOR::Simple'
===SORRY!=== Error while compiling -e
Could not open /home/nando/.raku/sources/983E0FAFB758220B170D33A30493A316F0805F75. Failed to stat file: no such file or directory

at -e:1
ugexe commented 2 years ago

I wonder if its related to https://github.com/rakudo/rakudo/issues/3153