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

Fix version check #1157

Merged
merged 1 commit into from
Jun 5, 2023
Merged

Fix version check #1157

merged 1 commit into from
Jun 5, 2023

Conversation

thomcc
Copy link
Contributor

@thomcc thomcc commented Jun 2, 2023

I was going to add a version check to plrust, so I started by copying the last time I wrote a version check. Turns out, last time I wrote it, I got it wrong, so this fixes that.

@thomcc thomcc requested a review from eeeebbbbrrrr June 2, 2023 19:00
let output = match std::process::Command::new(rustc).arg("--verbose").output() {
let output = match std::process::Command::new(rustc).arg("--version").output() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a hilarious bug.

$ rustc --verbose
error: no input filename given

$  rustc --version
rustc 1.69.0 (84c898d65 2023-04-16)

Both of those pass the conditional at the end of the function. 🤦

let output = match std::process::Command::new(rustc).arg("--verbose").output() {
let output = match std::process::Command::new(rustc).arg("--version").output() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a hilarious bug.

$ rustc --verbose
error: no input filename given

$  rustc --version
rustc 1.69.0 (84c898d65 2023-04-16)

Both of those pass the conditional at the end of the function. 🤦

@eeeebbbbrrrr eeeebbbbrrrr merged commit f2034de into develop Jun 5, 2023
@thomcc thomcc deleted the thomcc/fix-version branch June 20, 2023 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants