blob: c176db324c400ee209678b9388a108b54a221086 [file] [log] [blame]
Julian Halle76ade82020-11-25 03:07:21 +01001Versioning policy
2==================
3
4This document captures information about the version identifier used by the
5project. It tells the meaning of each part, where the version information is
6captured and how it is managed.
7
Gyorgy Szinga6c95df2022-11-25 11:15:51 +01008Format of version IDs
9---------------------
Julian Halle76ade82020-11-25 03:07:21 +010010
11The version identifier identifies the feature set supported by a specific
12release, and captures compatibility information to other releases.
13
14This project uses "Semantic Versioning", for details please refer to |SEMVER|.
15
Gyorgy Szinga6c95df2022-11-25 11:15:51 +010016The version number is constructed from three numbers, and an optional
17pre-release identifier. The `MAJOR` number is changed when incompatible API
18changes are introduced, the `MINOR` version when new functionality is added in a
19backward compatible manner, and the `PATCH` version when backwards compatible
20bug fixes are added. The pre-release identifier is appended after the numbers
21separated with a ``-`` and can be the string ``alpha`` or ``beta``.
Julian Halle76ade82020-11-25 03:07:21 +010022
Gyorgy Szinga6c95df2022-11-25 11:15:51 +010023Each release will get a unique version id assigned. When a release is made, the
Julian Halle76ade82020-11-25 03:07:21 +010024version number will get incremented in accordance with the compatibility rules
25mentioned above.
26
Gyorgy Szinga6c95df2022-11-25 11:15:51 +010027Version ID hierarchy
28--------------------
29
30The project hosts multiple components which can be used separately and thus need
31compatibility information expressed independently. Such components get a
32dedicated version ID. Examples are :ref:`libs-libsp` and :ref:`libs-libts`.
33
34Components are never released standalone but only part of a TS release. In that
35sense a set of independent component version IDs are assigned to a TS release ID.
Julian Halle76ade82020-11-25 03:07:21 +010036
37Storage and format
38------------------
39
40The version number of each release will be stored at two locations:
41 #. In a tag of the version control system in the form of "vX.Y.Z" where X Y
42 and Z are the major, minor and patch version numbers.
43 #. In a file called version.txt. This file uses ASCII encoding and will
44 contain the version number as "X.Y.Z" where X Y and Z are the major,
45 minor and patch version numbers.
46
47.. note:: The version id is independent from version identifiers of the
48 versioning system used to store the |TS| (i.e. git).
49
50--------------
51
52.. _`Semantic Versioning`: https://semver.org/spec/v2.0.0.html
53
Gyorgy Szinga6c95df2022-11-25 11:15:51 +010054*Copyright (c) 2020-2022, Arm Limited and Contributors. All rights reserved.*
Julian Halle76ade82020-11-25 03:07:21 +010055
56SPDX-License-Identifier: BSD-3-Clause