luarocks / luarocks/luarocks-site

serve zipped. json manifests

Open
#225 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
MoonScript
Stars
201
Forks
50
PR merge metrics
No merged PRs in 30d

Description

Hey 👋

To work around https://github.com/luarocks/luarocks/issues/1797, luarocks 3.12 now parses the manifest from JSON.
luarocks.org also serves zipped manifests, (e.g. https://luarocks.org/manifest-5.1.zip), but these only contain the Lua manifest.
In terms of network bandwidth, downloading and unpacking the zipped manifest is preferable.
Would it be possible to include the JSON manifest in the zip download?
Perhaps via https://luarocks.org/manifest-<version>.json.zip, so that clients can choose which one they want?

cc @hishamhm (if luarocks also uses the zipped manifest, it may still run into the luajit limitation).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how luarocks-site currently generates and serves the zipped Lua manifests, then inspect how manifest versions map to download URLs. Done means the JSON manifest is available in a zip download, with a clear URL choice such as manifest-.json.zip, while preserving the existing Lua manifest archive.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.