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 Debug derive to youtube3::api::Scope enum #450

Merged
merged 3 commits into from
Oct 22, 2023
Merged

Conversation

OMGeeky
Copy link
Contributor

@OMGeeky OMGeeky commented Oct 21, 2023

Adding that makes logging and debugging easier.

Adding that makes logging and debugging easier.
@OMGeeky OMGeeky changed the title Add Debug derive to Scope enum Add Debug derive to youtube3::api::Scope enum Oct 21, 2023
@OMGeeky OMGeeky marked this pull request as draft October 21, 2023 00:26
@OMGeeky
Copy link
Contributor Author

OMGeeky commented Oct 21, 2023

I honestly don't really know how to build all things (and if I should?) but even if I should, it generates me a ton of changes with whitespace/line endings so if those should not be committed too I can't really generate it all since I would have to manually select the actual changes on each file etc.

If you got anything I should do differently feel free to tell me.

I also have no Idea why the check failed, maybe you can give me a hint for that one since it worked locally.

Copy link
Owner

@Byron Byron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is once again broken because python casually breaks over time with nothing else changing, or the dependencies that are pulled in do. This is a problem on its own here.

The file edited here is generated, and changes need to be made in the generator or they will be lost next time the file is generated.

The source for it is here if you want to give it another try. Files can be regenerated with make youtube3 (hopefully), and if it doesn't regen after changing the code throw an rm -Rf gen/youtube3 in for good measure.

@OMGeeky
Copy link
Contributor Author

OMGeeky commented Oct 21, 2023

I did (or at least think I did) change the generator file that is at src/generator/templates/api/lib/lib.mako. Btw for me at least the link you sent does not work.
This PR should include 2 files, one is the generated one with make youtube3 and the other one is the template for it. Should I remove the generated one from the PR or is that fine?

Maybe while were at it we could also add the Clone derive to it since I don't see a reason why it should not be cloneable and the Enum does not contain any data that might not be cloneable

@Byron
Copy link
Owner

Byron commented Oct 22, 2023

Apologies, I only saw the first line which was a generated file and stopped there.

Should I remove the generated one from the PR or is that fine?

Yes, please do remove the changes in the generated file do feel free to add more traits now that we are at it.

The link also doesn't work for me, strangely enough, but it has no value as it just linked to the generator which you are already aware of.

Thanks again.

@OMGeeky OMGeeky marked this pull request as ready for review October 22, 2023 11:49
@OMGeeky OMGeeky requested a review from Byron October 22, 2023 11:49
@Byron Byron merged commit 8895ac6 into Byron:main Oct 22, 2023
1 of 2 checks passed
@Byron
Copy link
Owner

Byron commented Oct 22, 2023

Thanks a lot!

I added even more traits before merging.

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