-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[C#]Change to ENABLE_SPAN_T that doesn't require UNSAFE_BYTEBUFFER. #6073
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
Since Span does not necessarily require unsafe, I don't think this should be forced. When I read the source code, I noticed that the dependency on unsafe was so small that I could break this dependency. I will make a pull request for that change, so please check it. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
3 similar comments
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
There are conflicts and rebasing didn't seem to work and I'm getting errors, Please help me. |
@harujoh It looks like you merged changes from the official/upstream repository on top of your "ENABLE_SPAN_T doesn't require UNSAFE_BYTEBUFFER." (ac9d852) commit. And then pushed more commits after that. That's why you're getting more comments from google-cla bot. I think the first thing you should do is make a copy of your local repository folder to create a backup. You'll need to use some destructive git commands to fix your history. If you're using the GitHub Desktop client, I don't think it has the commands you'll need in its UI, so you'll need to use the command line, or another git client. What I would do is...
If you make any mistakes, you can delete your local repository, and copy the backup to replace it. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@ConanChenTookMyName Thanks for the advice. You've helped me to create new branches from commits and learn new commands such as Cherry-pick, Hard-reset, Force-push. However, I think I've followed your advice, but I'm still not getting the rebase working? The first failure in this problem was despite the fact that I selected [Rebase and merge] from the web. Rebase did not work at all. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
2 similar comments
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@harujoh I'm happy to help. It looks like your master branch's history is wrong. I think I overlooked this before. You have a series of commits authored by other people, but have you as the committer. That's why google-cla bot keeps asking for consent—because it needs consent from the original authors (because the commit ID's changed from the original). This issue was probably caused by the the original rebase/merge from the web UI you mentioned. You need to get your master branch back in-sync with the official/upstream repository first. Do you have a second remote added to your local repository, pointing to the official/upstream repository? If not, you need to add it first. (So, you should have an "origin" remote pointing to your fork on GitHub, and an "upstream" remote pointing to Google's repository.) Then...
I tried this using a local checkout of your repository, and it looks like it should fix the issues with its Git history. |
Change to ENABLE_SPAN_T that doesn't require UNSAFE_BYTEBUFFER.
Changed target framework to allow selection of 2.0 or 2.1 (or higher)
@ConanChenTookMyName Thank you so much! You have helped me to reach my goal. It must have been very difficult to read the English that relied on machine translation. Upstream didn't know it existed. Thanks to you I was able to learn about it. But unfortunately, I think I had some errors in the flag and I'm going to try to fix them now. Finally, again, thank you so, so much for your help. |
@harujoh The machine translation was very clear. I'm glad you were able to understand my writing too. I'm happy to see we were able to fix the problem. It will be your turn to help someone else with Git one day. |
I was not good at git flow. I am firmly committed to passing the relay baton you gave me to someone else. There is not encouraged to waste time here, so I'll end my reply with this sentence. Thank you so much. |
Sorry for the confusion with the conflicting merges, we will get it all sorted out. Thanks for the contributions! |
Due to the problem of the newline format, after pulling the latest master branch, it is not possible to switch to the old commit on the unix platform. Can this problem be solved through the .gitattribute or other configuration of the repository code? Now it has caused a lot of trouble for our continuous generation test. Thank you!
|
@harujoh @dbaileychess This breaks usage of
I think the |
@anassinator Thanks for noticing the glitch. I've created a pull request that fixes the problem, so please wait for it to be merged |
Merged #6137, @anassinator sorry for the churn. |
@Shixiaowei02 Thanks for noticing the glitch and fixing it. Sorry for the late reply. Normally the line breaks should have been automatically converted to follow the project, but for some reason they weren't. @dbaileychess This pull request is very good, with my line break code error corrected. |
It is my pleasure. Thanks. @dbaileychess @harujoh |
…oogle#6073) * ENABLE_SPAN_T doesn't require UNSAFE_BYTEBUFFER. Change to ENABLE_SPAN_T that doesn't require UNSAFE_BYTEBUFFER. * Selectable framework. Changed target framework to allow selection of 2.0 or 2.1 (or higher) * Added target framework version check. * Add core test project. * Added run on .Net Core.
A small change removes the need for UNSAFE_BYTEBUFFER when using ENABLE_SPAN_T.