tidy: replace make check with ./x.py test in documentation by chrissimpkins · Pull Request #69603 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation15 Commits6 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

chrissimpkins

This PR includes a minor documentation update for tidy. It replaces the make check approach with ./x.py test and describes how to execute the tidy checks (only) with ./x.py test src/tools/tidy ./x.py test tidy.

@chrissimpkins

@rust-highfive

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

petrochenkov

@chrissimpkins

re: #69603 (comment)

@petrochenkov Here is what I see with ./x.py tidy -h. I think that we should fix this if we are going to consider that sub-command the default approach.

info: Downloading and building bootstrap before processing --help
      command. See src/bootstrap/README.md for help with common
      commands.
Updating only changed submodules
Submodules updated in 0.05 seconds
    Finished dev [unoptimized] target(s) in 0.15s
Usage: x.py <subcommand> [options] [<paths>...]

Subcommands:
    build       Compile either the compiler or libraries
    check       Compile either the compiler or libraries, using cargo check
    clippy      Run clippy (uses rustup/cargo-installed clippy binary)
    fix         Run cargo fix
    fmt         Run rustfmt
    test        Build and run some test suites
    bench       Build and run some benchmarks
    doc         Build documentation
    clean       Clean out build directories
    dist        Build distribution artifacts
    install     Install distribution artifacts

To learn more about a subcommand, run `./x.py <subcommand> -h`

failed to run: /Users/chris/code-ext/rustlang/rust/build/bootstrap/debug/bootstrap tidy -h

@nikomatsakis

r? @petrochenkov -- I didn't know about the shortcut either, so clearly I'm not the best to review. :)

@petrochenkov

Here is what I see with ./x.py tidy -h.

This is not surprising, given that tidy is not a subcommand by itself, but a target of the x.py test command.

@petrochenkov

x.py test --help could say something about x.py test src/tools/tool and the x.py test tool shortcut.

@chrissimpkins

Thanks Vadim!

This is not surprising, given that tidy is not a subcommand by itself, but a target of the x.py test command.

Apologies. I think that I misread the earlier comment.

x.py test --help could say something about x.py test src/tools/tool and the x.py test tool shortcut.

I will update the test help and let you know when it is available.

@chrissimpkins

There's also a shortcut ./x.py test tidy.

Added in 0982c58 259b06e

x.py test --help could say something about x.py test src/tools/tool and the x.py test tool shortcut.

Added in 9f734c9

./x.py test --help includes the following information after these changes:

2020-03-09_22-05-50

I believe that I addressed all of your suggestions. Please let me know if there are any other locations in this repository where this information might be of use.

@chrissimpkins

@chrissimpkins

@chrissimpkins

@petrochenkov

@bors

📌 Commit c60d581 has been approved by petrochenkov

@bors

🌲 The tree is currently closed for pull requests below priority 1000, this pull request will be tested once the tree is reopened

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Mar 10, 2020

bors added a commit that referenced this pull request

Mar 11, 2020

@bors

Rollup of 8 pull requests

Successful merges:

Failed merges:

r? @ghost

Labels

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.