ugexe / zef

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

No such method 'remove-artifacts' for invocant of type #532

Closed decoursin closed 9 months ago

decoursin commented 9 months ago

I'm completely new to zef and raku.

I tried both installs, manual and using rakubrew, both failed with:

No such method 'remove-artifacts' for invocant of type

I also tried using the most recent tag v0.20.0 and still had the same problem.

I'm on Linux Mint 21.

ugexe commented 9 months ago

Is that the entire error? i.e. it doesn't tell you what type it is referring to?

ugexe commented 9 months ago

fwiw rakubrew works for me:

nlogan@Nicks-Air zef % rakubrew switch moar-2023.10
Switching to moar-2023.10
nlogan@Nicks-Air zef % rakubrew build zef
HEAD is now at bf99522 Bump version 0.19.1
Already on 'main'
Your branch is up to date with 'origin/main'.
===> Testing: zef:ver<0.20.0>:auth<github:ugexe>:api<0>
===> Testing [OK] for zef:ver<0.20.0>:auth<github:ugexe>:api<0>
===> Staging zef:ver<0.20.0>:auth<github:ugexe>:api<0>
===> Staging [OK] for zef:ver<0.20.0>:auth<github:ugexe>:api<0>
===> Installing: zef:ver<0.20.0>:auth<github:ugexe>:api<0>

1 bin/ script [zef] installed to:
/Users/nlogan/.rakubrew/versions/moar-2023.10/install/share/perl6/site/bin
Done, built zef for moar-2023.10

What version of raku does raku -v show? What is the output of raku -e 'say $*REPO.repo-chain.map({ $_ => .?candidates(CompUnit::DependencySpecification.new(:short-name<CompUnit::Repository::Staging>)) })'?

decoursin commented 9 months ago

Here's the entire output of running rakubrew build-zef

Building zef latest
HEAD is now at 782cdda Bump version 0.20.0
Already on 'main'
Your branch is up to date with 'origin/main'.
===> Testing: zef:ver<0.20.0>:auth<github:ugexe>:api<0>
===> Testing [OK] for zef:ver<0.20.0>:auth<github:ugexe>:api<0>
===> Staging zef:ver<0.20.0>:auth<github:ugexe>:api<0>
===> Staging [OK] for zef:ver<0.20.0>:auth<github:ugexe>:api<0>
No such method 'remove-artifacts' for invocant of type
'CompUnit::Repository::Staging'
Failed running /usr/bin/raku -I. bin/zef --/test --force install . at /home/nick/.rakubrew/bin/rakubrew line 864.

and raku -v:

Welcome to Rakudo™ v2022.02.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2022.02.

I installed raku via sudo apt install rakudo

And the output of raku -e 'say $*REPO.repo-chain.map({ $_ => .?candidates(CompUnit::DependencySpecification.new(:short-name<CompUnit::Repository::Staging>)) })':

(:short-name<CompUnit::Repository::Staging>)) })'
(inst#/home/nick/.raku => () inst#/usr/lib/perl6/site => () inst#/usr/lib/perl6/vendor => () inst#/usr/lib/perl6/core => (CompUnit::Repository::Installation::LazyDistribution.new(dist-id => "E14CAA5C7DE5B1A1BAC1ED1155377A9AF4962C18", read-dist => -> $_ { #`(Block|94566707385976) ... }, meta => ${:api(v0), :auth("perl"), :checksum("708B4F48873D9AA1D048760B4B487CD8C7427E00"), :source("70EBDA25F44EBFF8734F739F5779D64914083409"), :ver(v6.d)}, prefix => IO::Path.new("/usr/lib/perl6/core", :SPEC(IO::Spec::Unix), :CWD("/home/nick/working")))) ap# => Nil nqp# => Nil perl5# => Nil)

cheers

decoursin commented 9 months ago

I was able to solve the problem by doing this:

sudo apt remove rakudo
rakubrew download moar 2023.10
rakubrew build-zef

Feel free to close the issue. Thanks again!