repository icon indicating copy to clipboard operation
repository copied to clipboard

Add new package option to indicate whether it has module support

Open jiacai2050 opened this issue 2 years ago • 3 comments

Zig package manager has been merged for a while, as for this project, I suggest we add a new option module: bool to indicate whether it has module support, something like this:

{
  "author": "vrischmann",
  "tags": [
    "database"
  ],
  "git": "https://github.com/vrischmann/zig-sqlite",
  "root_file": "/sqlite.zig",
  "description": "zig-sqlite is a small wrapper around sqlite's C API, making it easier to use with Zig. ",
  "license": "mit",
  "updated_at": "2023-01-28T06:15:38Z",
  "homepage": ""
  "module": false   // newly add field
}

jiacai2050 avatar Feb 27 '23 02:02 jiacai2050

Perhaps it will be a point in time issue, and before long all maintained zig packages will have official package manager support. In that case the flag might be redundant.

After 0.11 is released, it might be reasonable to require all packages on this list to support being a "module", and remove the ones that do not as un-maintained. This would also make adding the flag unnecessary after that point.

Personally, I'm hoping all packages will adopt the official packaging system.

qbradley avatar Mar 02 '23 18:03 qbradley

Perhaps it will be a point in time issue, and before long all maintained zig packages will have official package manager support.

That's a good point.

IMO this period won't be short, perhaps 2 or 3 years is required for the community to keep up.

jiacai2050 avatar Mar 03 '23 04:03 jiacai2050

Not sure if a module field is enough. That has to be actively maintained and i honestly don't have the time to periodically check each project listed here if they support modules. If we now introduce this, someone has to maintain that field

ikskuh avatar Mar 03 '23 06:03 ikskuh