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

add Apache-2.0 license text #121

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

decathorpe
Copy link

The Apache-2.0 license is one of the many licences that requires the original license text to be included in (re)distributed sources. This PR adds the license text so that it is included when publishing to crates.io with cargo publish. For example, this is usually a requirement for getting something packaged in Linux distributions (which is what I am doing for Fedora Linux, as a new dependency of remove_dir_all v0.8).

The contents of the file match the LICENSE-APACHE file from the rust-lang/rust repository on GitHub.

If this PR is acceptable, then it would be great if you could tag and publish a new version on crates.io.

@rbtcollins
Copy link
Owner

I know its a common practice but this is the first time I've seen the claim that the license requires a verbatim copy in order for it to take effect. Can you please provide a citation? In particular, I couldn't find a clause in the license to that effect or with that implication. The appendix of the text version at https://www.apache.org/licenses/LICENSE-2.0.txt explicitly instructs people to refer to the licence by URL and does not specify to copy the license into the repository.

@decathorpe
Copy link
Author

It's not about the license taking effect, but about a clause in the license itself:

(...)

4. Redistribution. You may reproduce and distribute copies of the
   Work or Derivative Works thereof in any medium, with or without
   modifications, and in Source or Object form, provided that You
   meet the following conditions:

   (a) You must give any other recipients of the Work or
       Derivative Works a copy of this License; and (...)

I also find the "simplified" summary of licenses as shown on choosealicense.com (Permissions / Conditions / Limitations) helpful: https://choosealicense.com/licenses/apache-2.0/

@decathorpe
Copy link
Author

Could you take another look please? Reading your comment, it looks like there's been a misunderstanding. Please let me know if there is still something I can do to clear that up.

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

Successfully merging this pull request may close these issues.

2 participants