-
-
Couldn't load subscription status.
- Fork 47
Description
Hello, I found a bug:
aboutCode-toolkit does not copy the licenses from the reference directroy if multiple licenses are given.
Create a .csv with content:
about_resource,name,version,license_key,license_file
3rdParty/test,test,1.5,"License1,License2,License3","LIC1.LICENSE,LIC2.LICENSE,LIC3.LICENSE"
Create some dummy license files in folder .\test-ReferenceTexts
run: about gen --reference .\test-ReferenceTexts test.csv .\test-Output
this will generate the file test-Output\3rdParty\test.ABOUT :
about_resource: test
name: test
version: '1.5'
licenses:
- key: License1,License2,License3
file: LIC1.LICENSE,LIC2.LICENSE,LIC3.LICENSE
but it will not copy LIC1, LIC2, LIC3 !
So a subsequent call to
about attrib --template test.html .\test-Output .\test-Output\test.html
will fail, because it can't find the licenses where it expects them.
Running aboutcode-toolkit version 5.0.0
Generating attribution...
Command completed with 3 errors or warnings.
CRITICAL: 3rdParty/test.ABOUT: Field license_file: Path /test/test-Output/3rdParty/LIC1.LICENSE not found
CRITICAL: 3rdParty/test.ABOUT: Field license_file: Path /test/test-Output/3rdParty/LIC2.LICENSE not found
CRITICAL: 3rdParty/test.ABOUT: Field license_file: Path /test/test-Output/3rdParty/LIC3.LICENSE not found
Attribution generated in: \test\test-Output\test.html
This workflow works only if you had specified a single license and single license file.