-
Notifications
You must be signed in to change notification settings - Fork 185
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
Busted should run under the same interpreter it was installed with. #227
Comments
I'm not sure this can be accomplished easily. LuaRocks has an extensive install script that handles this. Where Busted is installed using LuaRocks, and installing through a rockspec doesn't allow you to catch that information and write it into some busted config file. That said, LuaRocks will wrap any Lua scripts in the BIN directory in a shell wrapper script that handles the correct Lua environment. So to make that work, I think the shell script should be rewritten as a Lua script. This is an example (Windows) from LuaxPL, for the
Would that satisfy your request? |
@Tieske Yes, I believe it would. Unfortunately, my lua-fu is pretty low right now, so I can't say for certain if it's the right approach. |
Can we open this issue back up since it's now no longer fixed? |
Apparently busted 1.11.0 is broken(lunarmodules/busted#236) in a way that is causing the unit tests to fail. This pins the version to 1.10.0 and also fixes a wrong variable set when msgpack was added as a dependency
Hey guys, as you might've noticed (or not), a recent LuaRocks upgrade broke some things for us. (I) think this is because something changed on the Busted side. Could you advise? Reference: neovim/neovim#1031 EDIT: could you please re-open if found to be a valid issue? |
Right now, the main busted script is a shell script that expects to find a suitable interpreter on the path. Unfortunately, when using a custom tree for only a specific purpose, such as unit testing in Neovim, you have to add our custom tree to your path or specify it with the
-l
option. It'd be nice to just run the busted script, and have it use the same interpreter that was used to install it.FWIW, it seems that both luarocks and moonscript work well in this regard. Maybe the could serve as an example of what busted needs to do?
The text was updated successfully, but these errors were encountered: