Skip to content

Does the tool have support for converting SPDX 2.2 tag files? #211

Closed

Description

@makdataproj

Getting this error when trying to convert SPDX 2.2 tag file to SPDX 2.2 json file:

data:AnnotationType must be "REVIEW" or "OTHER". Line: 23

data:FileName Can not appear before PackageName, line: 41

Activity

  1. meretp commented on Nov 7, 2022

    @meretp
    Collaborator

    Hi @makdataproj! Thanks for your issue, to answer your initial question: Unfortunately the tool doesn't fully support spec version 2.2 but we are currently working on it.

    I had a deeper look at the errors you provided.
    The first one is rather misleading, it is thrown by the tagvalue parser here because the lexer couldn't parse the given line. The error message should be adjusted here. As far as I understand the error is produced here but I don't know yet how to fix this.

    Concerning the second error: The current tagvalue-parser expects the ordering of a SPDX-Document so that the packages are placed first and the files come afterwards. The parsing of some fields is based on this ordering, e.g. here. This also needs a deeper understanding of the tagvalue-parser.

    As discussed in #244 we will soon refactor the whole data model and the builder/ parser-structure. In this context we will then also take care of the errors described here.

  2. meretp commented on Nov 7, 2022

    @meretp
    Collaborator

    As this is a duplicate of #196 I will close this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions