8000 warn newer available version of the x tool by DebugSteven · Pull Request #104552 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

warn newer available version of the x tool #104552

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

Merged
merged 16 commits into from
Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename wrapper-version argument for x to differentiate it from the bo…
…otstrap version
  • Loading branch information
DebugSteven committed Dec 31, 2022
commit f50ad6cd8ce48c8f159bee064ba9ae9dd28f6868
2 changes: 1 addition & 1 deletion src/tools/tidy/src/x_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::io::ErrorKind;
use std::process::{Command, Stdio};

pub fn check(bad: &mut bool) {
let result = Command::new("x").arg("--version").stdout(Stdio::piped()).spawn();
let result = Command::new("x").arg("--wrapper-version").stdout(Stdio::piped()).spawn();
let child = match result {
Ok(child) => child,
Err(e) => match e.kind() {
Expand Down
2 changes: 1 addition & 1 deletion src/tools/x/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn exec_or_status(command: &mut Command) -> io::Result<ExitStatus> {

fn main() {
match env::args().skip(1).next().as_deref() {
Some("--version") => {
Some("--wrapper-version") => {
let version = env!("CARGO_PKG_VERSION");
println!("{}", version);
return;
Expand Down
0