-
Notifications
You must be signed in to change notification settings - Fork 13.3k
User may want to skip tidy check sometimes #113206
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
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
r? @Kobzol |
This won't have an effect for people that already have the hook installed, but that's not such an issue, since this PR is aimed towards future new contributors anyway. I have tested it locally that it works. @bors r+ rollup |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#113072 (str docs: remove "Basic usage" text where not useful) - rust-lang#113153 (make HashMap::or_insert_with example more simple) - rust-lang#113185 (Set `channel = nightly` in dist profile) - rust-lang#113186 (document that the panic in collect_intra_doc_links is load-bearing) - rust-lang#113187 (No need to distinguish `LocalTy` from `Ty`) - rust-lang#113189 (compiletest: Only trim the end of process output) - rust-lang#113191 (Update browser-ui-test version and improve GUI test) - rust-lang#113206 (User may want to skip tidy check sometimes) r? `@ghost` `@rustbot` modify labels: rollup
./x test tidy --set build.locked-deps=true | ||
if [ $? -ne 0 ]; then |
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.
./x test tidy --set build.locked-deps=true | |
if [ $? -ne 0 ]; then | |
res=ok | |
./x test tidy --set build.locked-deps=true || res=fail | |
if [ "$res" != 0 ]; then |
Probably too late, but you could do something like this to not need to disable the -e
flag. Not really needed anyway in this tiny script though
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.
nice trick!
but it should be:
if [ "$res" != "ok" ]; then
right?
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.
Whoops, you're right!
Fixes #113135