• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / go-luarocks / 41538281855
82%

Build:
DEFAULT BRANCH: master
Ran 02 Nov 2026 10:34PM UTC
Jobs 1
Files 38
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Nov 2026 10:33PM UTC coverage: 87.785% (-0.03%) from 87.811%
41538281855

push

github

bigbes
client: look for modules only in the preload and the rock trees

A lua backend command runs Lua found in the directory it is run in. A
directory holding luarocks/fs/linux.lua has that file executed by a
plain `rocks list`, so running tt rocks in a cloned repository runs the
repository's code. A system LuaRocks under /usr/local is picked up the
same way and breaks the backend: that is tarantool/tt#847, where
installing a rock fails on Ubuntu 22.04.

newVM creates the VM with lua.NewState, which seeds package.path from
$LUA_PATH, or else from gopher-lua's default "./?.lua" plus
/usr/local/share/lua/5.1. Only the embedded modules are preloaded, and
LuaRocks requires many others, each under pcall: the platform fs
modules and their .tools, lfs, socket.http, md5, and every
luarocks.cmd.external.* found on package.path, which cmd.run_command
loads on every command. Each of them was looked up on that path.

Start the VM with an empty package.path. The rock trees still get on
it: luarocks.cmd.which requires luarocks.loader while cmd.run_command
loads the command table, and the loader appends cfg.rocks_trees through
cfg.init_package_paths, so a luarocks-build-<type> backend installed
into the tree keeps loading. That puts a repository's committed .rocks
on the path too, so preload a stub for every optional module LuaRocks
probes for, recorded from the requires the preload did not satisfy,
that fails the require the way a missing module does: the upstream
fallbacks run and nothing is looked up. The plugin points, build and
test backends, fetch protocols and external commands, still load from
the trees.

External commands loaded from there on every command, though: to build
its parser cmd.run_command requires each luarocks.cmd.external.* that
fs.modules finds on the path. A shim over luarocks.fs.lua makes
fs.modules return, for that namespace and the admin one, only the name
argv asks for as the command, or as the subject of help, so
`<name>` still runs an extern... (continued)

37 of 43 new or added lines in 1 file covered. (86.05%)

5541 of 6312 relevant lines covered (87.79%)

55.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
91.52
-0.35% client/lua.go
Jobs
ID Job ID Ran Files Coverage
1 41538281855.1 02 Nov 2026 10:34PM UTC 38
87.79
GitHub Action Run
Source Files on build 41538281855
  • Tree
  • List 38
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5c05a1ec on github
  • Prev Build on master (#41469170192)
  • Next Build on master (#42677479794)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc