Commit 72a3182
authored
fix: make usage with luarocks (#1050)
Before this fix, teal would get confused when you would do `make LUA=./lua` where `./lua` would be the local lua scripts that luarocks make, because the actual teal transpiler uses the modules from `./teal` but `tlcli` would use it from `./lua_modules/bin/share/lua/5.X` which causes errors. Furthermore, the tests only set `package.path`, not `package.cpath` which made them fail if the modules (`lfs`) was only in `lua_modules`.1 parent d644355 commit 72a3182
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
| 188 | + | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
17 | | - | |
0 commit comments