Skip to content

panic trying to run script, when script is given with just a filename #234

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

Closed
jruderman opened this issue Oct 27, 2022 · 0 comments · Fixed by #236
Closed

panic trying to run script, when script is given with just a filename #234

jruderman opened this issue Oct 27, 2022 · 0 comments · Fixed by #236

Comments

@jruderman
Copy link

cargo-bisect-rustc --script timeout.sh

panics after the first download:

checking nightly-2022-10-26 from the currently installed default nightly toolchain as the last failure
checking the start range to find a passing nightly
installing nightly-2022-10-26
testing...
thread 'main' panicked at 'thiserror::Errored to run "timeout.sh": Os { code: 2, kind: NotFound, message: "No such file or directory" }', /Users/jruderman/.cargo/registry/src/gb.xjqchip.workers.dev-1ecc6299db9ec823/cargo-bisect-rustc-0.6.4/src/toolchains.rs:302:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It should either work, or give an error message earlier saying I need to add the ./ prefix.

(The name and contents of the script don't matter for this bug; an empty script or one with just a shebang line is enough to trigger it.)

Contrast: actually missing script

cargo-bisect-rustc --script notfound.sh

gives a reasonable, early error message:

error: Invalid value "notfound.sh" for '--script <SCRIPT>': No such file or directory (os error 2)

Contrast: prefix script name with ./

cargo-bisect-rustc --script ./timeout.sh

works.

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 a pull request may close this issue.

1 participant