ugexe / zef

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

zef does not compile under rakudo-jvm #503

Closed melezhik closed 1 year ago

melezhik commented 1 year ago

I am trying to build zef for rakudo jvm backend (2022.12) and get this error:

04:13:25 :: Step 20/28 : RUN git clone https://github.com/ugexe/zef.git /tmp/zef && cd /tmp/zef && raku -I. bin/zef install . --/test --install-to=home
04:13:25 ::  ---> Running in b4ea241b131b
04:13:25 :: Cloning into '/tmp/zef'...
04:15:42 :: ===SORRY!=== Error while compiling /tmp/zef/bin/zef
04:15:42 :: ===SORRY!=== Error while compiling /tmp/zef/lib/Zef/CLI.rakumod (Zef::CLI)
04:15:42 :: ===SORRY!===
04:15:42 :: Type 'Zef::Repository' is not declared
04:15:42 :: at /tmp/zef/lib/Zef/Client.rakumod (Zef::Client):227
04:15:42 :: ------>     has Zef::Repository⏏ $.recommendation-manager; # todo: renam
04:15:42 :: Malformed has
04:15:42 :: at /tmp/zef/lib/Zef/Client.rakumod (Zef::Client):227
04:15:42 :: ------>     has Zef::⏏Repository $.recommendation-manager; # t
04:15:42 :: 
04:15:42 :: 
04:15:42 :: at /tmp/zef/lib/Zef/CLI.rakumod (Zef::CLI):2
04:15:42 :: 
04:15:42 :: at /tmp/zef/bin/zef:3
04:15:43 :: 

Full log is here - https://ci.sparrowhub.io/report/3000

HTH

Alexey

ugexe commented 1 year ago

Not really, it’s fairly well known much of the functionality of the jvm backend is missing. In this cases a simple interface type assertion. Unless it’s being suggested to rewrite zef to work with whatever subset of raku the jvm supports I would expect this type of issue to be filed under rakudo.