-
Notifications
You must be signed in to change notification settings - Fork 13.3k
fix(bootstrap): rename exclude flag to skip 🐛 #114001
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,10 @@ pub struct Flags { | |
|
||
#[arg(global(true), long, value_name = "PATH")] | ||
/// build paths to exclude | ||
pub exclude: Vec<PathBuf>, | ||
pub exclude: Vec<PathBuf>, // keeping for client backward compatibility | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe change the comment to "build paths to skip, prefer Ideally, we'd hide it from the help message. I see https://docs.rs/clap/latest/clap/struct.Arg.html#method.hide, but I can't seem to make it work for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, it's |
||
#[arg(global(true), long, value_name = "PATH")] | ||
/// build paths to skip | ||
pub skip: Vec<PathBuf>, | ||
#[arg(global(true), long)] | ||
/// include default paths in addition to the provided ones | ||
pub include_default_paths: bool, | ||
|
@@ -318,7 +321,7 @@ pub enum Subcommand { | |
no_fail_fast: bool, | ||
#[arg(long, value_name = "SUBSTRING")] | ||
/// skips tests matching SUBSTRING, if supported by test tool. May be passed multiple times | ||
skip: Vec<String>, | ||
skip: Vec<PathBuf>, | ||
#[arg(long, value_name = "ARGS", allow_hyphen_values(true))] | ||
/// extra arguments to be passed for the test tool being used | ||
/// (e.g. libtest, compiletest or rustdoc) | ||
|
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.
This changed more that exclude/skip replace?
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.
@klensy
Sorry, but I don't get it. Would you explain more, please?
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.
before:
--exclude doc::library
,after:
--skip library
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.
yes, this part is clear to me
I don't get what you are saying
are you suggesting that this change is irrelevant?
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.
Probably. Is this suggestion still valid after change?
Running
python x.py --stage=0 doc --exclude library
on master version works, but--exclude doc::library
actually not?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.
Running this on master:
Output:
running it on my change:
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.
Ran the same with
doc::library
nothing got excluded
note that @jyn514 explained this in here (the last line)
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.
Hm, ok.