You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2021. It is now read-only.
The Artifact::mergeWith method will not work correctly if there are two artifacts with the same coordinates and facts but different content.
Steps to reproduce
Option:
Run example-projects/example-project with the CSVAnalyzer and csv file, which contains two artifacts with same coordinates, but different declared licenses:
Artifact Id;Group Id;Version;Coordinate Type;Effective License;Declared License;Observed License;Copyrights;Hash;Source URL;Release Tag URL;Software Heritage ID;Clearing State;Change Status;CPE;File Name
commons-cli;org.apache.commons;1.4;mvn;;Apache-2.0;;;;;;;;;;
commons-cli;org.apache.commons;1.4;mvn;;MIT;;;;;;;;;;
Option:
Run the code snippet from the comment below
Acceptance Criteria
The mergeWith method works properly when merging two artifacts with the same coordinates and facts.
Definition of Done
Acceptance criteria fulfilled
A test case is created to reproduce the bug
A PR is created, the CI infrastructure reports green, the bug test case proves that bug is fixed
The PR is reviewed and approved
No TODOs left in the code unless explained in the ticket, if something else is still open, this is summarized in a comment in the issue