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

Modify profiles to use Lua 5.2+ without needing compatibility flags #1457

Merged
merged 5 commits into from
May 16, 2015

Conversation

lbud
Copy link
Member

@lbud lbud commented May 1, 2015

Since the deprecation of module in Lua 5.2+, the current approach only works in 5.2 with compatibility flags, and doesn't work in Lua 5.3 at all. This alternate approach allows us to use Lua 5.2 with or without compatibility flags and fixes issues raised in #1454.

Note: the change I introduce here to lib/access.lua's nil return reflects the way it had been inlined in car.lua — before changing the lib/access.lua value, two car barrier tests (features/car/barrier.feature) were failing; after the change all cucumber tests pass. I'm not entirely confident as to why this is as I am by no means a lua expert… @emiltin would you mind taking a look?

I'm curious to see how upgrading affects travis (especially wrt questions about using LuaJIT, #1442) (I'm developing on OSX locally).
cc @TheMarex @springmeyer @willwhite

@TheMarex
Copy link
Member

TheMarex commented May 1, 2015

Todo:

  • Figure out why travis does not find lua
  • Change luaAddScriptFolderToLoadPath to check if it is a symbolic link and also append the expanded path

@lbud
Copy link
Member Author

lbud commented May 1, 2015

@TheMarex ah, looks like the cmake files are still looking for 5.1 — I'll fix.
edit: no, this is nowhere near as straightforward as I assumed…continuing to investigate.

@TheMarex
Copy link
Member

Sorry dropped the ball here. Will rebase and add following symbolic links.

@TheMarex TheMarex added this to the 4.7.0 milestone May 15, 2015
Lauren Budorick and others added 5 commits May 15, 2015 15:02
Symbolic links are a _bad_ idea with lua script. Lua will search at the
place of the symbolic link for modules _not_ at the actual location of
the script.
@TheMarex
Copy link
Member

Looks good. Merging.

TheMarex added a commit that referenced this pull request May 16, 2015
Modify profiles to use Lua 5.2+ without needing compatibility flags
@TheMarex TheMarex merged commit 0706ba9 into develop May 16, 2015
@TheMarex TheMarex deleted the develop-lua52 branch June 8, 2015 23:40
@daniel-j-h daniel-j-h mentioned this pull request Jan 12, 2016
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 this pull request may close these issues.

2 participants