-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Avoid calling rustup
in tests
#4218
Comments
See also #3243 for a fun issue (the tests run in parallel, but
It can. I use nightly and there were formatting differences between nightly and stable rustfmt (because of bugs, nightly was clearly better). So I ran EDIT: but yes, running |
|
I also think installing toolchains/components during tests is a bad idea due to the side effects. We can simply check to refuse nightly
If this is acceptable, I'm willing to implement it. |
Just running |
@flodiebold |
Sounds plausible... |
Regarding the installation, my guess is it's a holdover from when we were using a specific beta version for formatting instead of just stable. For stable, it seems fine to me to bail if it's not installed... |
Still getting the test failures with rust-analyzer 2020-05-04 and rustfmt provided by the Arch Linux rust package:
|
@polyzen rust-analyzer test suite is guaranteed to work only in rust-analyzer repo, we ship the binary, we don't ship test suite. PRs to improve testing in downstreams packagers are welcome though. |
rust-lang/rust-analyzer#4218 (comment) git-svn-id: file:///srv/repos/svn-community/svn@700626 9fca08f4-af9d-4005-b8df-a31f2cc04f65
rust-lang/rust-analyzer#4218 (comment) git-svn-id: file:///srv/repos/svn-community/svn@700626 9fca08f4-af9d-4005-b8df-a31f2cc04f65
I'm on NixOS and use nixpkgs-mozilla to setup
cargo
,rustc
and other components, withoutrustup
.cargo test
in rust-analyzer results in 3 failure for me:They are all trying to invoke
rustup run stable -- ...
and thenrustup toolchain install stable
. Obviously, they failed because there is norustup
.But I already have
cargo
andrustfmt
installed!Why not invoking
cargo ...
orrustfmt ...
directly? Since we are expectingstable
, I think it should not lead to problem even if nightly components are invoked.The text was updated successfully, but these errors were encountered: