Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
coke opened this issue Aug 31, 2024 · 2 comments
Open

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

coke opened this issue Aug 31, 2024 · 2 comments

Comments

@coke
Copy link

coke commented Aug 31, 2024

Problem with 5c74583 -

$ 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 coke changed the title Can't install Can't install, missing $!max-age Aug 31, 2024
@coke
Copy link
Author

coke commented Aug 31, 2024

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
Copy link
Author

coke commented Aug 31, 2024

--- 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 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant