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

Rock won't install on Lua 5.2 upwards because of lua-cjson #18

Open
DarkWiiPlayer opened this issue Sep 24, 2020 · 0 comments
Open

Rock won't install on Lua 5.2 upwards because of lua-cjson #18

DarkWiiPlayer opened this issue Sep 24, 2020 · 0 comments
Labels
Upstream Not a problem with restia, but an upstream dependency

Comments

@DarkWiiPlayer
Copy link
Owner

As of b0fd53f lua-cjson is listed as a dependency in the rockspec. The current version of lua-cjson on Luarocks is not compatible with Lua 5.2 and upwards and fails to compile.

A fix for this has already been merged into the lua-cjson repository a while ago, but until a new release of this rock the best workaround is to:

  • Download the lua-cjson rockspec
  • Change the version to scm-1 (both in the file name and in the rockspec)
  • Remove the tag attribute from the source section
  • install this version of the rock for all affected Lua versions
@DarkWiiPlayer DarkWiiPlayer added the Upstream Not a problem with restia, but an upstream dependency label Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Upstream Not a problem with restia, but an upstream dependency
Projects
None yet
Development

No branches or pull requests

1 participant