diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2023-05-26 12:57:31 +0200 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2023-06-02 13:27:25 +0200 |
commit | 5b90f7a6a942ec630ea24cc202bb2a57b3f726a4 (patch) | |
tree | 44a1e124e1ffaa15755a91b1e3715c7020e41542 /doc | |
parent | e3fb99b926f092da1e782bd4635ca00c1dc15f93 (diff) |
coding-conventions: include the preceding upstream version when packaging a commit without a version attached
Diffstat (limited to 'doc')
-rw-r--r-- | doc/contributing/coding-conventions.chapter.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/contributing/coding-conventions.chapter.md b/doc/contributing/coding-conventions.chapter.md index 7a538de18d15..03cd3dd458c8 100644 --- a/doc/contributing/coding-conventions.chapter.md +++ b/doc/contributing/coding-conventions.chapter.md @@ -220,7 +220,9 @@ There are a few naming guidelines: - The `version` attribute _must_ start with a digit e.g`"0.3.1rc2". -- If a package is not a release but a commit from a repository, then the `version` attribute _must_ be the date of that (fetched) commit. The date _must_ be in `"unstable-YYYY-MM-DD"` format. +- If a package is a commit from a repository without a version assigned, then the `version` attribute _should_ be the latest upstream version preceding that commit, followed by `-unstable-` and the date of the (fetched) commit. The date _must_ be in `"YYYY-MM-DD"` format. + +Example: Given a project had its latest releases `2.2` in November 2021, and `3.0` in January 2022, a commit authored on March 15, 2022 for an upcoming bugfix release `2.2.1` would have `version = "2.2-unstable-2022-03-15"`. - Dashes in the package `pname` _should_ be preserved in new variable names, rather than converted to underscores or camel cased — e.g., `http-parser` instead of `http_parser` or `httpParser`. The hyphenated style is preferred in all three package names. |