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

Bugfix for license check #87627

Closed
wants to merge 1 commit into from

Conversation

gilescope
Copy link
Contributor

cargo fmt would only work if you were in the root dir before if a license check template was set.
(as otherwise it would not find the template.)

  • is there a better way of doing this? I don't really like to mutate global state such as the current dir.

cargo fmt would only work if you were in the root dir before.
(as otherwise it would not find the template.)
@rust-highfive
Copy link
Contributor

Some changes occurred in src/tools/rustfmt.

cc @calebcartwright

@rust-highfive
Copy link
Contributor

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 30, 2021
@gilescope
Copy link
Contributor Author

(As mentioned as an issue in rust-lang/rustfmt#3352 )

@calebcartwright
Copy link
Member

Thank you but rustfmt PRs need to be opened against the rustfmt repo as opposed to updating the subtree here.

@jyn514 jyn514 added the A-rustfmt Area: Rustfmt label Jul 30, 2021
@gilescope
Copy link
Contributor Author

gilescope commented Jul 30, 2021 via email

@calebcartwright
Copy link
Member

I thought maybe I needed to do it this way as the rustfmt repo
seemed dependent upon the rustc one (E.g. dependencies on the _ast crates).

No worries. Tool development happens in the respective repos for all tools that are subtrees or sumbodules. Tool changes then get pulled into the rustc repo at regular intervals and/or as needed to address specific issues. The tool subtrees should only be updated directly when strictly necessary with minimal changes required as part of changes tot rustc, such as AST changes that are breaking to the tool.

This PR should be closed and submitted to rust-lang/rustfmt instead

@gilescope
Copy link
Contributor Author

gilescope commented Jul 30, 2021 via email

@Mark-Simulacrum
Copy link
Member

Thanks. Closing as it seems this will be refiled on rustfmt directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustfmt Area: Rustfmt S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants