-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Remove deserializing/reserializing toml from configure.py #137408
base: master
Are you sure you want to change the base?
Conversation
Could not assign reviewer from: |
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @clubby789 (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
b805a73
to
986d881
Compare
for line in lines[i:]: | ||
if line.startswith("["): | ||
if section: | ||
# Write out the previous section before starting a new one. | ||
# | ||
# Note that the `target` section is handled separately as we'll | ||
# duplicate it per configured target, so there's a bit of special | ||
# handling for that here. | ||
if section_name.startswith("target"): |
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 only writes out a section when we encounter the next, which means the final section is never written (i.e. dist
is dropped)
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.
Oops, you're totally right. Will fix.
Triage: comment is not addressed |
Hi @abylaw, do you still want to work on this PR? |
Instead, creates the toml line by line without deserializing/deserializing and replacing the values.
#112445
r? jyn514