AdaCore / e3-core

Core framework for developing portable automated build systems
27 stars 36 forks source link

SPDX version does not match the description #687

Open grouigrokon opened 8 months ago

grouigrokon commented 8 months ago

In spdx.py line 3, the comment says:

"""Generate an SPDX file.

This is following the specification from https://spdx.github.io/spdx-spec/v2.3/
a simple example can be found at ./tests/tests_e3/spdx_test.py
"""

While the DocumentInformation class says it uses SPDX version 1.2:

@dataclass
class DocumentInformation(SPDXSection):
    """Describe the SPDX Document."""

    document_name: DocumentName
    document_namespace: DocumentNamespace = field(init=False)
    version: SPDXVersion = SPDXVersion("SPDX-1.2")

See https://spdx.github.io/spdx-spec/v2.3/document-creation-information/#61-spdx-version-field