shuppet / raku-api-discord

Raku module for interacting with the Discord API.
https://shuppet.com
BSD 3-Clause "New" or "Revised" License
30 stars 3 forks source link

Installation issues #9

Closed Altai-man closed 5 years ago

Altai-man commented 6 years ago

Right now it is impossible to install the module, trying out latest version locally:

➜  p6-api-discord git:(master) ✗ zef install .
===> Testing: API::Discord:ver<0.0.1>
===SORRY!===
The following packages were stubbed but not defined:
    API::Discord::Endpoints::API::Discord::HTTPResource
Other potential difficulties:
    Useless declaration of a has-scoped multi-method in module (did you mean 'my method format'?)
    at /home/koto/Devel/p6-api-discord/lib/API/Discord/Endpoints.pm6 (API::Discord::Endpoints):34
    ------> multi method⏏ format(Str:D: API::Discord::HTTPResourc

===> Testing [FAIL]: API::Discord:ver<0.0.1>
Aborting due to test failure: API::Discord:ver<0.0.1> (use --force-test to override)

Before that I also had to replace Websocket in dependency section to WebSocket(well, partially I am at fault here, because I missed it on first sight).

You can try out if the module can be installed using zef install . from repo directory. Thanks.

Altai-man commented 5 years ago

Now the error is different:

➜  p6-api-discord git:(master) ✗ zef install .
===> Testing: API::Discord:ver<0.0.1>
===SORRY!=== Error while compiling /home/koto/Devel/p6-api-discord/lib/API/Discord/Message.pm6 (API::Discord::Message)
Cannot have a multi candidate for 'create' when an only method is also in the package 'API::Discord::Message::Reaction'
at /home/koto/Devel/p6-api-discord/lib/API/Discord/Message.pm6 (API::Discord::Message):37
===> Testing [FAIL]: API::Discord:ver<0.0.1>
Aborting due to test failure: API::Discord:ver<0.0.1> (use --force-test to override)
Altreus commented 5 years ago

Should be installing now :)