MoonScript collection for Lunatik
ipparse is a library to parse network packets (as presented on Lunatik's socket buffers).
Run make hooks once after cloning: it points core.hooksPath at the
versioned .githooks/, whose pre-commit hook refuses an ipparse-*.rockspec
bump when the committed API documentation is stale.
Docs live in ipparse/doc/ and are committed; regenerate them with
make -C ipparse doc (needs LDoc, e.g. nix-shell -p luajitPackages.ldoc).
A vX.Y.Z tag (SemVer, e.g. v2.0.0) triggers .github/workflows/main.yml:
the GitHub release with moontastik_lua.zip, then the LuaRocks publication of
ipparse by the luarocks job. Increment MAJOR for an incompatible API
change, MINOR for a backward-compatible addition, and PATCH for a fix. The
legacy two-part forms vX.Y and vX.Y-Z are still accepted.
- Create
ipparse-X.Y.Z-1.rockspecat the repository root (v2.0.0→ipparse-2.0.0-1.rockspec), withversion = "X.Y.Z-1"andsource.url = "https://github.com/luainkernel/moontastik/archive/refs/tags/vX.Y.Z.tar.gz". Do not add anmd5with that URL: the tag archive only exists once the tag is pushed, so its checksum cannot be known beforehand. - Regenerate the API documentation (
make -C ipparse doc) and commit everything. The pre-commit hook (enabled bymake hooks, see Development) refuses a rockspec bump when the committed documentation is stale. git tag vX.Y.Z && git push --tags- Once: create the
LUAROCKS_API_KEYsecret (Settings → Secrets and variables → Actions) with a LuaRocks API key; without it theluarocksjob fails explicitly.