Skip to content

Commit

Permalink
docs: add comment explaining how to regenerate constants and table
Browse files Browse the repository at this point in the history
Signed-off-by: Gareth Jones <[email protected]>
  • Loading branch information
G-Rath committed Nov 4, 2024
1 parent d2a227b commit dae0386
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions bindings/go/osvschema/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package osvschema

type Ecosystem string

// this list is generated by scripts/update-ecosystems-lists.py
const (
EcosystemAlmaLinux Ecosystem = "AlmaLinux"
EcosystemAlpine Ecosystem = "Alpine"
Expand Down
3 changes: 2 additions & 1 deletion docs/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ within its ecosystem. The two fields must both be present, because the
The `purl` field is a string following the
[Package URL specification](https://github.com/package-url/purl-spec) that
identifies the package, without the `@version` component.
This field is optional but recommended.
This field is optional but recommended.

Different ecosystems can define the same names; they identify different
packages. For example, these denote different libraries with different sets of
Expand All @@ -686,6 +686,7 @@ versions and different potential vulnerabilities:

The defined ecosystems are:

<!-- (re)generate this list using scripts/update-ecosystems.list.py after changing ecosystems.json -->
<!-- begin auto-generated ecosystems list -->

| Ecosystem | Description |
Expand Down

0 comments on commit dae0386

Please sign in to comment.