Raku / whateverable

🤖 Different IRC bots that operate on a bunch of prebuilt Rakudo versions
https://gist.github.com/Whateverable
GNU Affero General Public License v3.0
18 stars 14 forks source link

Can't install, missing $!max-age #390

Closed coke closed 1 month ago

coke commented 2 months ago

Problem with 5c74583a0433b1f5ec11458aa6b7f2370e873144 -

$ zef install .
===> Staging Whateverable:ver<1.0.12>
===SORRY!=== Error while compiling /home/azureuser/whateverable/site#sources/EBDA0108B292DA73B249F0940F1DCE4681E2C8A5 (Whateverable::Webhooks)
Attribute $!max-age not declared in class Whateverable::Webhooks::StrictTransportSecurity
at /home/azureuser/whateverable/site#sources/EBDA0108B292DA73B249F0940F1DCE4681E2C8A5 (Whateverable::Webhooks):46
------> }⏏<EOL>

azureuser@raku-blin:~/whateverable$ zef test .
===> Testing: Whateverable:ver<1.0.12>
===> Testing [OK] for Whateverable:ver<1.0.12>
coke commented 2 months ago

adding has $!max-age in that class avoids the compilation error but since it's not tested, I can't be sure this is the right fix.

coke commented 2 months ago
--- a/lib/Whateverable/Webhooks.pm6
+++ b/lib/Whateverable/Webhooks.pm6
@@ -25,6 +25,7 @@ unit module Whateverable::Webhooks;

 class StrictTransportSecurity does Cro::Transform {
     has Str:D $.secret is required;
+    has $!max-age;

     method consumes() { Cro::TCP::Message }
     method produces() { Cro::TCP::Message }