You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/09/09 08:41:24 UTC

[GitHub] [apisix] spacewander commented on a diff in pull request #7893: feat: set constants.apisix_lua_home for used by plugins

spacewander commented on code in PR #7893:
URL: https://github.com/apache/apisix/pull/7893#discussion_r966786481


##########
apisix/cli/ngx_tpl.lua:
##########
@@ -432,6 +432,9 @@ http {
             dns_resolver = dns_resolver,
         }
         apisix.http_init(args)
+
+        local constants = require("apisix.constants")
+        constants.apisix_lua_home = "{*apisix_lua_home*}"

Review Comment:
   Please add a comment about why we need to inject a variable here



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org