Skip to content

Support Release metadata in pgxn_spec #68

Closed
@theory

Description

@theory

When a distribution is released, PGXN Manager adds three fields to the META.json file for its API, so that clients can validate downloads. Those fields are:

  • user: The PGXN username for the user who released the distribution to PGXN.
  • date: The timestamp for when the release was made.
  • sha1: The SHA-1 hash digest for the release, in hex.

In order for the CLI to be able to validate a download, add support for this data to pgxn/meta as follows:

  1. Add a v1 JSON schema that validates these fields.
  2. Add a v2 JSON schema that augments the distribution metadata with a new object that contains more/better release metadata, including a URL and flexible SHA representation.
  3. Add a struct to support this new field, along with the appropriate accessors.

Metadata

Metadata

Assignees

Labels

clientWork on or for the benefit of a PGXN CLImetadataChanges to the PGXN Meta spec or libraries

Type

No type

Projects

  • Status

    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions