You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading Penlight in OpenResty gives me a warning on stdout:
[warn] 19#19: *2 [lua] _G write guard:12: __newindex(): writing a global Lua variable ('warn') which may lead to race conditions between concurrent requests, so prefer the use of 'local' va
riables
stack traceback:
/usr/lib/openresty/luajit/share/lua/5.1/pl/compat.lua:230: in main chunk
[C]: in function 'require'
/usr/lib/openresty/luajit/share/lua/5.1/pl/utils.lua:9: in main chunk
[C]: in function 'require'
/usr/lib/openresty/luajit/share/lua/5.1/pl/pretty.lua:12: in main chunk
[C]: in function 'require'
Would it be possible to set it using rawset, i.e. change its definition from
Loading Penlight in OpenResty gives me a warning on stdout:
Would it be possible to set it using
rawset
, i.e. change its definition fromPenlight/lua/pl/compat.lua
Line 230 in 16743e9
to
? It would make it compatible with current versions of OpenResty.
The text was updated successfully, but these errors were encountered: