croservices / cro

Development tools for building services and distributed systems in Raku using the Cro libraries.
https://cro.services/
Artistic License 2.0
88 stars 35 forks source link

cro stub with TLS enabled produces service.p6 with uninterpolated variable #44

Closed japhb closed 6 years ago

japhb commented 6 years ago

If you cro stub an HTTPS service using cro 0.7.1, the service.p6 file includes the line:

certificate-file => %*ENV<{$env-name}_TLS_CERT>

(Note that $env-name did not get properly interpolated into the generated code.)

Altai-man commented 6 years ago

Thanks for reporting.

Fixing it now...

Altai-man commented 6 years ago

Produces

    tls => %(
        private-key-file => %*ENV<YUMEKO_TLS_KEY> ||
            %?RESOURCES<fake-tls/server-key.pem>,
        certificate-file => %*ENV<YUMEKO_TLS_CERT> ||
            %?RESOURCES<fake-tls/server-crt.pem>
    ),

now.