{"id":16625679,"url":"https://github.com/aleclarson/lula","last_synced_at":"2026-04-25T07:33:54.626Z","repository":{"id":66177861,"uuid":"121176168","full_name":"aleclarson/lula","owner":"aleclarson","description":"Lua package manager","archived":false,"fork":false,"pushed_at":"2018-03-08T04:12:01.000Z","size":52,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T19:35:22.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aleclarson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-11T23:02:16.000Z","updated_at":"2025-06-28T01:12:53.000Z","dependencies_parsed_at":"2023-02-20T17:15:39.886Z","dependency_job_id":null,"html_url":"https://github.com/aleclarson/lula","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aleclarson/lula","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Flula","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Flula/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Flula/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Flula/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleclarson","download_url":"https://codeload.github.com/aleclarson/lula/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Flula/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32254696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T04:23:17.126Z","status":"ssl_error","status_checked_at":"2026-04-25T04:21:53.360Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T04:06:47.493Z","updated_at":"2026-04-25T07:33:54.621Z","avatar_url":"https://github.com/aleclarson.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lula\n\nTry it:\n```sh\ngit clone https://github.com/aleclarson/lula.git --depth 1\nln -s $PWD/lula/lula.sh ~/bin/lula\n```\n\n**NOTE:** This is highly experimental. Only use this for top-level application packages. Things may be broken!\n\nCurrently, this tool uses `luarocks` extensively. Please have it installed.\n\n### package.lua\n\nYou must create a `package.lua` file in the root directory of your project.\nIn it, you will declare a global variable for each configuration option you want to use.\n\nHere are the configuration options:\n- `main: string` The entry script when running `scripts.start`\n- `root: string` The working directory when running `scripts.start`\n- `scripts: {}` Contains named shell scripts that you run with `lula run \u003cname\u003e`\n- `inject: {}` An array of module paths to require before your \"main\" path\n- `dependencies: {}` An array of git urls to shallow clone into the ./lib directory\n\nThe `main` option defaults to `init.lua`.\n\nThe `scripts.start` option defaults to `lua`.\n\nThe `dependencies` array may contain git URLs (with or without commit-ish)\nor luarocks package names. This allows fetching from `rock_servers` defined\nin the luarocks config file or any arbitrary git repository with a rockspec.\n\n### Usage\n\n```sh\n# Run the \"start\" script\nlula\nlula start\n\n# Run any other script you wish\nlula run \u003cname\u003e\n\n# Install \"dependencies\" into the ./lib directory\nlula install\nlula i\n```\n\nThe `LUA_PATH` and `LUA_CPATH` are setup automatically to ensure\nyou can import modules from the ./lib directory.\n\n### Roadmap\n\n- Support `lua_version` property\n- Support version locking for a dependency\n- Support adding a dependency via `lula install \u003cgit-url\u003e`\n- Support adding a dependency by its luarocks name (by resolving it to a url)\n- Support passing extra arguments to `lula start` and `lula run`\n- Let `scripts` contain pairs where the value is an array of commands\n- Support `lula test` for testing dependencies\n\n### Example package.lua\n\n```lua\nmain = \"init.lua\"\ninject = {\n  \"moonscript\",\n}\ndependencies = {\n  \"date\",\n  \"https://github.com/tarantool/queue.git\",\n  \"https://github.com/tarantool/document.git#1.0.1\",\n}\nscripts = {\n  start = \"tarantool\",\n  clean = \"rm data/backup/* \u0026\u003e /dev/null\",\n}\n```\n\n### Environment vars for dependencies\n\nIf a dependency expects some environment variable during installation,\nyou may get an error that tells you to pass it into `luarocks install`.\n\nI haven't found a solution for passing variables into a specific\ninstall command, but to expose variables to all install commmands,\nyou *can* do the following:\n\n```sh\nexport LUAROCKS_CONFIG=\"/path/to/config.lua\"\n\nlula install\n```\n\nYour `config.lua` file will contain the following:\n\n```lua\nvariables = {\n  FOO = \"hello world\",\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Flula","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleclarson%2Flula","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Flula/lists"}