Skip to content

spdxtagvalue: 'Invalid element reference in relationship' #867

@rnjudge

Description

@rnjudge

Describe the bug
The spdxtagvalue document generated by Tern is not validating.

To Reproduce
Steps to reproduce the behavior:

  1. At the tip of master, run: tern -r report -i photon:3.0 -o output.spdx -f spdxtagvalue
  2. Download the spdx validation tool at https://bintray.com/spdx/spdx-tools/download_file?file_path=org%2Fspdx%2Ftools-java%2F0.0.4%2Ftools-java-0.0.4-jar-with-dependencies.jar
  3. Try to verify the document: `java -jar ~/tools-java-0.0.4-jar-with-dependencies.jar Verify output.spdx
  4. See error

Error in terminal

This SPDX Document is not valid due to:
	Invalid element reference in relationship: SPDXRef-photon:3.0-photon-3.0 at line number 20

# Line 20:
 20 Relationship: SPDXRef-photon:3.0-photon-3.0 CONTAINS SPDXRef-b51a3a7866
 21 
 22 
 23 PackageName: layer.tar
 24 SPDXID: SPDXRef-b51a3a7866

Expected behavior
Document should validate.

Metadata

Metadata

Assignees

Labels

bugSomething went wrong

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions