nishanths / license

Command line license text generator.
MIT License
663 stars 82 forks source link

"--name" and "--year" option not working with Apache-2.0 License #36

Closed ganler closed 3 years ago

ganler commented 3 years ago

How I installed license

yay -S nishanths-license-git

Symptom

image

image

nishanths commented 3 years ago

Thanks for the report. I believe this is similar to https://github.com/nishanths/license/issues/32 (please let me know if you find out otherwise). The line:

Copyright [yyyy] [name of copyright owner]

is under the following section of the license:

APPENDIX: How to apply the Apache License to your work.

For this reason, the [yyyy] and [name ...] placeholders should be left as is. Solr, which is an Apache project, also leaves this line as is in its license; see the link below.

https://github.com/apache/lucene-solr/blob/4d6c3e17c6574b5d0fa626359a7f14c435bc5e9f/LICENSE#L189