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

Fix path to rustfmt in Suggested Workflows #1462

Closed
wants to merge 1 commit into from

Conversation

BGR360
Copy link
Contributor

@BGR360 BGR360 commented Sep 11, 2022

Was pairing with a new contributor the other day and we realized the path to rustfmt was wrong.

I think it also might be the case that users now have to manually build stage0 rustfmt by doing ./x.py build --stage 0 src/tools/rustfmt. It doesn't seem to get built when doing ./x.py build on a compiler config.

@ehuss
Copy link
Contributor

ehuss commented Sep 11, 2022

I think the original is correct. There's just a bug that rustfmt doesn't get downloaded until you run a command that needs it (like x.py fmt or x.py test tidy). This is tracked in rust-lang/rust#101306.

EDIT: The desire is to use a pinned version of rustfmt, since rarely newer versions may format differently than the pinned version. So you don't want to use one built from scratch.

@BGR360
Copy link
Contributor Author

BGR360 commented Sep 11, 2022

Ah gotcha thanks for clarifying.

@BGR360 BGR360 closed this Sep 11, 2022
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