sstadick / cargo-bundle-licenses

Generate a THIRDPARTY file with all licenses in a cargo project.
Apache License 2.0
86 stars 6 forks source link

License file not found for notify:5.1.0 #13

Open dergecko opened 1 year ago

dergecko commented 1 year ago

For the crate notify the license is not correctly added to the bundled file.

Instead of copying the license file bundle-licenses just posts the string path into the licenses text field:

  - package_name: notify
    package_version: 5.1.0
    license: CC0-1.0 OR Artistic-2.0
    licenses:
      - license: CC0-1.0
        text: "../LICENSE"
      - license: Artistic-2.0
        text: "../LICENSE"

The license file in the repo is a symbolic link to the parent dir.

If you need further information feel free to reach out to me.

sstadick commented 1 year ago

Thanks for making an issue!

The short of it is that notify is using a workspace and symlinking the license files from the workspace dir into the individual crate directories. This is related to https://github.com/sstadick/cargo-bundle-licenses/issues/2, which is also not fully resolved.

For now I'd recommend just manually pasting the text in as specified in the README. Next time I'm doing work on this I'll revisit this set of issues.