Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output Doesn't Include Full Content of NOTICE File As Required by Apache 2.0 #74

Open
zicklag opened this issue Sep 5, 2023 · 3 comments

Comments

@zicklag
Copy link

zicklag commented Sep 5, 2023

Hey there!

I'm considering using this for a closed-source Rust project in order to comply with the license obligations for Open Source code that I use, but it seems like there is something that this crate doesn't collect as required by the Apache 2.0 license:

          If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works,

While this crate searches through NOTICE files for copyright declarations, it doesn't include the entirety of the NOTICE file, which, while not exactly required by the verbiage above, seems required by an automated tool because there may be attributions in the NOTICE file that don't match a copyright regex, and they would still need to be included.

Of course I'm not a lawyer so I could be wrong, but as far as I can tell it seems like we may need to make an exception for the NOTICE file and include the whole thing for purposes of attribution.

@jszwedko
Copy link
Collaborator

jszwedko commented Sep 8, 2023

Hey @zicklag ! You are right. When we used this recently with https://github.com/vectordotdev/vector I actually went through all Apache 2.0 projects and I additionally ensured all NOTICE files were included.

I think that would be a reasonable feature for this tool to have to generate a concatenated NOTICE file. We'd be open to contributions if you feel motivated.

@zicklag
Copy link
Author

zicklag commented Sep 8, 2023

For my project I ended up needing both cargo and pnpm license attributions, so I threw together my own tool, which is working for me so far. It's unlicensed if anybody wants to steal any code from it, though! https://github.com/katharostech/make-notices

@jszwedko
Copy link
Collaborator

jszwedko commented Sep 8, 2023

Awesome! Thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants