hythm7 / Pakku

Package Manager for the Raku Programming Language
Artistic License 2.0
26 stars 3 forks source link

Incompatible MROs error after upgrading to Rakudo 2020.01 #6

Closed hythm7 closed 4 years ago

hythm7 commented 4 years ago

Started getting this error after upgrading Rakudo from few months old to latest:

===SORRY!=== Error while compiling /home/hythm/dev/Pakku/bin/pakku
Incompatible MROs in P6opaque rebless for types Perl6::Metamodel::ClassHOW+{<anon>}+{<anon>} and Perl6::Metamodel::ClassHOW+{<anon>}

The error disappear if I commented use Hash::Merge::Augment (An imported module). (Then also get rid of the "merge" method here and replace the line with %!cnf = $cmd.ast;)

However I tried to create a minimal example with a small module and use Hash::Merge::Augment but couldn't reproduce the error on the minimal module. so it looks like Hash::Merge::Augment and Pakku is not playing nice together on latest Rakudo.

bin/pakku file:

#!/usr/bin/env raku

use lib 'lib';

use Pakku;
bash-4.2$ raku --version
This is Rakudo version 2020.01-86-g578935e built on MoarVM version 2020.01.1-27-gbf2a5d6
implementing Raku 6.d.