Skip to content
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

"nesting of [[...]] is deprecated" #11

Closed
chris-jansson opened this issue Nov 21, 2018 · 3 comments · Fixed by #12
Closed

"nesting of [[...]] is deprecated" #11

chris-jansson opened this issue Nov 21, 2018 · 3 comments · Fixed by #12

Comments

@chris-jansson
Copy link

I'm running Lua 5.1.5 on a Macbook Pro. When I try to load this library like the README specifies:

local resty_url = require 'resty.url'

I get the following error from the LuaRocks loader:

Error → /usr/local/share/lua/5.1/luarocks/loader.lua @ 147
suite spec/foo_spec.lua
/usr/local/share/lua/5.1/luarocks/loader.lua:147: error loading module 'resty.url' from file '/usr/local/share/lua/5.1/resty/url.lua':
	/usr/local/share/lua/5.1/resty/url.lua:64: nesting of [[...]] is deprecated near '['

Any plans to update the deprecated code? Thanks

mikz added a commit that referenced this issue Nov 21, 2018
@mikz
Copy link
Contributor

mikz commented Nov 21, 2018

Interesting. We are only running on LuaJIT 2.1 that is based on Lua 5.1 and it works there just fine.

@chris-jansson could you try #12 and see if it works?

@chris-jansson
Copy link
Author

Thanks for the quick reply! I'm away from that computer until Monday, but will check then and report back.

@chris-jansson
Copy link
Author

That fixed it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants