This repository is for developing the Lua package that is published through Luarocks. The Netacea team handles publishing.
Use the existing Docker-based workflow unless you have a specific reason not to:
- Create
./.envfrom./.env.example. - Fill in the Netacea environment variables required for the mode you want to test.
- Update
./src/conf/nginx.confif you need a local server configuration.
Start the development container with:
docker compose up --build restyThe module will be available on http://localhost:8080.
Run unit tests in the dev container with:
./run_lua_tests.shTo include coverage output:
export LUACOV_REPORT=1 && ./run_lua_tests.shFor ease of use, the recommended way to run tests outside of the dev container is through Docker Compose:
docker compose run --rm --build testFor coverage through Docker Compose:
docker compose run -e LUACOV_REPORT=1 --build testRun the linter with:
docker compose run --rm --build lint- Keep changes focused and consistent with the existing Lua style in
src/andtest/. - Add or update tests when behavior changes.
- Prefer small, reviewable changes over broad refactors unless a refactor is part of the task.
When releasing a new version, update all version references together:
- Update
src/lua_resty_netacea.luaand change_N._VERSIONto the new library version, for example1.2.2. - Rename the rockspec file to match the new release, for example
lua_resty_netacea-1.2.2-0.rockspec. - Update the
version = "..."field inside the rockspec to the same value. - Update any build files that reference the rockspec filename:
- Update any other hardcoded version references you introduce in future changes.
The package version and the rockspec version should stay in sync, with the rockspec using the -0 release suffix.
Report security issues by email to security@netacea.com. Include a description of the issue, the steps to reproduce it, affected versions, and any known mitigations.