-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Do not include Facebook license on users codegen'd code #31516
Conversation
Base commit: b2dbde3 |
Thanks for the PR. Let me run this through our OSS IP team and I'll get back to you. |
@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @acoates-ms,
Thanks for the PR. I'd like to review it and drive it to landing if you wish.
Can I ask you to:
- Rebase on top of
main
- Apply the changes I suggested to all the templates?
@@ -17,10 +17,10 @@ type FilesOutput = Map<string, string>; | |||
|
|||
const template = ` | |||
/** | |||
* Copyright (c) Facebook, Inc. and its affiliates. | |||
* This code was generated by a tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* This code was generated by a tool. | |
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). |
* Changes to this file may cause incorrect behavior and will be lost if | ||
* the code is regenerated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Changes to this file may cause incorrect behavior and will be lost if | |
* the code is regenerated. | |
* Do not edit this file as changes may cause incorrect behavior and will be lost | |
* once the code is regenerated. |
Summary: Closes facebook#31516 I've cherry-picked the original PR that had merge conficts + updated all the headers as the one for the TurboModule generators were not handled. Original Commit Message from acoates The codegen generates a Facebook copyright notice at the top of the generated files. While this might make sense on the core files, this codegen will be run on external components too. The notice also refers to a LICENSE file in the root of this project, which might not be there if this is run on another project. I did a quick look at some of the codegen that we ship within windows dev tools, and it looks like we normally just have comments saying the file was codegen'd and so the file shouldn't be manually edited. Open to suggestions on what the comment header should say. Changelog: [General] [Changed] - Do not include Facebook license on users codegen'd code Differential Revision: D33455176 fbshipit-source-id: d64e1a75d23d80a7acae1e15ea7d751d7a316129
@acoates-ms I've published this #32840 that is going to close this PR as it has several merge conflicts + The files inside |
Summary: Pull Request resolved: facebook#32840 Closes facebook#31516 I've cherry-picked the original PR that had merge conficts + updated all the headers as the one for the TurboModule generators were not handled. Original Commit Message from acoates The codegen generates a Facebook copyright notice at the top of the generated files. While this might make sense on the core files, this codegen will be run on external components too. The notice also refers to a LICENSE file in the root of this project, which might not be there if this is run on another project. I did a quick look at some of the codegen that we ship within windows dev tools, and it looks like we normally just have comments saying the file was codegen'd and so the file shouldn't be manually edited. Open to suggestions on what the comment header should say. Changelog: [General] [Changed] - Do not include Facebook license on users codegen'd code Differential Revision: D33455176 fbshipit-source-id: 5bcc73155d79ee7128726ec040bb6a5f94623baf
Summary
The codegen generates a Facebook copyright notice at the top of the generated files. While this might make sense on the core files, this codegen will be run on external components too. The notice also refers to a LICENSE file in the root of this project, which might not be there if this is run on another project. I did a quick look at some of the codegen that we ship within windows dev tools, and it looks like we normally just have comments saying the file was codegen'd and so the file shouldn't be manually edited.
Open to suggestions on what the comment header should say.
Changelog
[General] [Changed] - Do not include Facebook license on users codegen'd code
Test Plan