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

Remove deserializing/reserializing toml from configure.py #137408

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

abylaw
Copy link

@abylaw abylaw commented Feb 22, 2025

Instead, creates the toml line by line without deserializing/deserializing and replacing the values.

#112445

r? jyn514

@rustbot
Copy link
Collaborator

rustbot commented Feb 22, 2025

Could not assign reviewer from: jyn514.
User(s) jyn514 are either the PR author, already assigned, or on vacation. Please use r? to specify someone else to assign.

@rustbot
Copy link
Collaborator

rustbot commented Feb 22, 2025

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 (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Feb 22, 2025
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@abylaw abylaw force-pushed the simplify-configure branch from b805a73 to 986d881 Compare February 25, 2025 23:47
Comment on lines +636 to +644
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"):
Copy link
Contributor

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)

Copy link
Author

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.

@alex-semenyuk
Copy link
Member

Triage: comment is not addressed
@rustbot label: +S-waiting-on-author, -S-waiting-on-review

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 17, 2025
@Kobzol
Copy link
Contributor

Kobzol commented Mar 24, 2025

Hi @abylaw, do you still want to work on this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants