-
Notifications
You must be signed in to change notification settings - Fork 1.8k
M1 Mac using cargo run
doesn't work unless remove rust-toolchain.toml
#14673
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
Comments
cargo run
doesn't work unless remove rust-toolchain.tomlcargo run
doesn't work unless remove rust-toolchain.toml
cargo run
doesn't work unless remove rust-toolchain.tomlcargo run
doesn't work unless remove rust-toolchain.toml
Steps to solve: rustup self uninstall
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Go with default installation and |
After reinstalling there was an issue with updating some git submodules as seen by this output jon.padilla@COMP-W936N7C769 vector % cargo run
Updating git submodule `https://boringssl.googlesource.com/boringssl`
warning: spurious network error (2 tries remaining): SecureTransport error: connection closed via error; class=Net (12)
warning: spurious network error (1 tries remaining): SecureTransport error: connection closed via error; class=Net (12)
error: failed to load source for dependency `openssl-src`
Caused by:
Unable to update https://github.com/vectordotdev/openssl-src-rs.git?branch=enable_engine#52be5ec9
Caused by:
failed to update submodule `openssl`
Caused by:
failed to update submodule `boringssl`
Caused by:
failed to fetch submodule `boringssl` from https://boringssl.googlesource.com/boringssl
Caused by:
network failure seems to have happened
if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
Caused by:
SecureTransport error: connection closed via error; class=Net (12)
jon.padilla@COMP-W936N7C769 vector % export CARGO_NET_GIT_FETCH_WITH_CLI=true
jon.padilla@COMP-W936N7C769 vector % cargo run
Updating git submodule `https://boringssl.googlesource.com/boringssl`
Updating git submodule `https://github.com/krb5/krb5`
Updating git submodule `https://github.com/pyca/cryptography.git`
Updating git submodule `https://github.com/google/wycheproof`
Updating git repository `https://github.com/vectordotdev/tokio`
Updating crates.io index The solution was to set a temporary env variable to continue with compilation of vector |
I also had to brew install protobuf to run vector locally |
vector now runs locally and I can run cargo run in |
Uh oh!
There was an error while loading. Please reload this page.
A note for the community
For some reason removing rust-toolchain.toml makes
cargo run
work againHowever we then get the issue again:
Problem
Seems to be a problem with mac not working with the version of rust.
Configuration
No response
Version
v0.25.0
Debug Output
No response
Example Data
No response
Additional Context
No response
References
rust-lang/rustup#3025
The text was updated successfully, but these errors were encountered: