-
Notifications
You must be signed in to change notification settings - Fork 53
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 LICENSE file #224
Comments
You want a license to what?:
|
In the repository there should be license file, otherwise it is restricted - by default. No license file does not mean that it is open to modify, it means that it is closed. Without license file in the repository your are sending message "I'm the owner of the code and you can't copy, can't modify and can't redistribute it". If you are afraid of adding license file (because code is generated), for same reason you should be afraid of not adding it :-). No license file does not mean you have opt-out from the code - lack of license file means that you are copyright holder. If the code is generated - add license file, and in the body of the file add information that it has been generated (and computer algorithms outcomes can't be subject of copyrights). Currently - as I said - formally, whoever owns repository is a copyright holder. Everything else is just a subject of gray area for the lawyers. |
OK. Whenever I have time, I might add LICENSE-MIT + LICENSE-APACHE file to the repo, so I'll keep this open. Or you can PR this if this is a big show-stopper for you somehow (just add LICENSE-MIT + LICENSE-APACHE that you can copy from - say - But I don't think this is a big show-stopper actually and maybe you are a bit too strict for what amounts to be a template generator? I mean, you can always generate a sample project, then "read" its 10-lines (at most) The stuff that actually matters (the ESP IDF + the
|
Not a lawyer but I believe that gindoslaw is correct according to https://choosealicense.com/no-permission/. Because this is a project generator, I think that the generated files might inherit the license of the template files. Using MIT + BSD could reduce the flexibility of projects utilizing your generator. Perhaps you can add the Unlicense? I think it would resolve this rather cleanly. https://choosealicense.com/licenses/unlicense/ |
I'm not adding a unlicense. If you feel the missing standard two licenses (Apache + MIT) are such a big issue, open a PR to add them. But I would reiterate again, that for a measly project generator this topic is really blown out of proportions. |
I am planning on making a project and seeing as how the Rust on ESP book recommends this project generator I'd like to use it. I think this project is sufficiently complicated (thank you for your hard work) to warrant a license. It's more than just the main.rs file - it's the entire generated repo. Because the files are directly modified rather than linked, generated projects could be considered derivative works. In addition, it brings more clarity to contributors - the choosealicense page seems to indicate that a contributor license agreement is expected for projects without a license. One of the reasons I suggested the Unlicense is because I want to release my project as "Unlicense OR MIT" just like https://github.com/BurntSushi/ripgrep Is "Unlicense OR MIT" acceptable for you?
Because non-licensed code is technically not open for copying or modifying, can I consider this as a private license to clone, modify, and open a pull request? |
I think this comment of mine ^^^ is summarizing my point of view. Basically, we are talking about two different types of licensing here. Perhaps the best metaphor is to imagine that
|
Thanks for working with me on this. For my own uses, I care about the license of the generated code, which I would prefer is provided with full usage rights. As for the code of the project itself, I think that still needs a license for contributors to legally contribute. I wasn't totally clear in my original comment, but if the entire project was licensed with the Unlicense, then both of these problems would be solved with the least amount of complication. I took some time to find some prior work: Community posts:
Ruby on Rails: GCC: GNU Bison: LLVM/Clang: endless-sky: AOSP: LEMON parser generator: SQLite: Unfortunately I couldn't find any snippet that's along the lines of "The generated project files are provided copyright-free and license-free". Maybe that snippet is good enough to put in the readme?
Is this "Apache-2.0 OR MIT" or "Apache-2.0 AND MIT"? If Apache + MIT is going to apply to the output files out of simplification, then those should probably be copied over to the generated project just like Rails. |
I can't keep but wonder if you've ever used It is also a generator, and it might be using templates too, embedded in its binary payload. Who knows? Yet, it doesn't output any license in the resulting project it generates. Also, I find the idea of I think, for a generated project, the default (or the only) option must be NOT to generate a license. This way the code the developer does on top of the generated content t is proprietary by default. What I can do is to put in the README, that the generated content by In the end I also feel you are overthinking it a bit :) So unless you have a really strong counter argument I've not seen yet, I would be dual licensing the repo itself, and putting a "license" section in the readme that the generated code is in the public domain, but not outputting any license in the generated code (because it is dangerous for the developer). Hopefully that would be good enough for you too. |
There's now #240 |
OR. Dual licensing, as most Rust projects do. |
Done now. |
Bug description
Because there is no license file inside repository it make it hard to work with the code legally. Please add LICENSE.txt or LICENSE.rst or LICENSE.md.
Additional context
Because it is template reasonable will be to make it MIT or BSD.
The text was updated successfully, but these errors were encountered: