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

cargo-script interface via "cargo script" is incorrect with nightly-2018-03-20 #54

Closed
tcr opened this issue Mar 27, 2018 · 2 comments
Closed

Comments

@tcr
Copy link

tcr commented Mar 27, 2018

I just switched to this nightly, and cargo script suddenly fails to work. Note the help menu:

$ cargo script
cargo 0.2.8
Compiles and runs "Cargoified Rust scripts".

USAGE:
    cargo <SUBCOMMAND>

FLAGS:
    ...

cargo-script seems to think it's a binary named cargo, not cargo-script as intended.

The run-cargo-script binary is also affected.

Workaround: Adding script as the third argument, as in cargo script script filename.rs seems to work.

@tcr tcr changed the title Not working with nightly-2018-03-20 cargo-script interface via "cargo script" is incorrect with nightly-2018-03-20 Mar 27, 2018
@ryansname
Copy link

@tcr I think thats related to this: rust-lang/cargo#5212.

It worked for me after upgrading from nightly 2018-03-19 to 2018-03-28.

@tcr
Copy link
Author

tcr commented Apr 1, 2018

@ryansname is correct, this looks resolved and was fixed for me in 2018-03-30. :)

@tcr tcr closed this as completed Apr 1, 2018
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

No branches or pull requests

2 participants