Skip to content

Why can I require a lua module from a plugin whose cond is false (thus not loaded)? #597

Answered by folke
xulongwu4 asked this question in Q&A
Discussion options

You must be logged in to vote

This is a side-affect of auto-loading of lua modules. You'll be able to require those modules, but the plugin will never load, nor will it ever be on the rtp. I can return an error instead, but this is low on my prio list

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@xulongwu4
Comment options

@folke
Comment options

Answer selected by xulongwu4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants