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 2021/05/24 05:23:01 UTC

[GitHub] [apisix] tzssangglass commented on issue #4288: request help: custome plugin failed

tzssangglass commented on issue #4288:
URL: https://github.com/apache/apisix/issues/4288#issuecomment-846747795


   > > > > 
   > > > 
   > > > 
   > > > > cc @Firstsawyou Please take a look.
   > > > 
   > > > 
   > > > sorry,i Misoperation and closed it ,but please help me to resolve it ,thanks
   > > 
   > > 
   > > Ok, I will reproduce it.
   > 
   > thanks, it can be work when i set custom plugin in apisix/plugins file ,but it can't work when set it in my own file such as apisix/custom_plugin file and i have update makefile show this issue top,
   > then make deps, make run ,it can't work
   > 当把插件放在plugins目录下时,可以生效,但是放到我自定义的目录custom下不能生效,已经在makefile里面添加了install项了,也在config.yml里面添加自定义插件了,make deps重新编译,也试过make install命令,然后make run 在control api里面还是查不到
   
   apisix will look for the code file of the plugin from the fixed directory, maybe you also need to modify the code.
   
   take a look at 
   https://github.com/apache/apisix/blob/52cb59213de546052718f740eafddd47fa57e7f7/apisix/plugin.lua#L82-L84


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

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