-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: allow customizing lua_package_path & lua_package_cpath #3417
Conversation
Signed-off-by: spacewander <[email protected]>
.travis/apisix_cli_test/test_main.sh
Outdated
make stop | ||
|
||
if grep "failed to load plugin [3rd-party]" logs/error.log > /dev/null; then | ||
echo "failed: 3rd party plugin can not be loaded" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it’s better to use 3rd-party
to keep the plugin name consistent,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
.travis/apisix_cli_test/test_main.sh
Outdated
echo "failed: 3rd party plugin can not be loaded" | ||
exit 1 | ||
fi | ||
echo "passed: 3rd party plugin can be loaded" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto.
Signed-off-by: spacewander <[email protected]>
doc/plugin-develop.md
Outdated
@@ -29,10 +30,39 @@ | |||
- [**register public API**](#register-public-api) | |||
- [**register control API**](#register-control-api) | |||
|
|||
## where to put your plugin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plugin => plugins.
if conf then | ||
local path = conf | ||
if path:byte(-1) ~= str_byte(';') then | ||
path = path .. ';' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if conf is ""
, it'll return ";"
, is this OK for the lua_package_path
directive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated.
Signed-off-by: spacewander <[email protected]>
Signed-off-by: spacewander <[email protected]>
Signed-off-by: spacewander [email protected]
What this PR does / why we need it:
Pre-submission checklist: