Skip to content

Conversation

@kinnison
Copy link
Contributor

…the past

This should fix #1984 or at least ameliorate it.

@kinnison
Copy link
Contributor Author

If either of @sloanp486 or @tbarusseau were able to fetch this branch and try it I'd appreciate it, but if it doesn't actually fix #1984 then they can comment after the release and we can reopen it for further investigation.

@kinnison kinnison added this to the 1.23.0 milestone Nov 23, 2020
@tbarusseau
Copy link

This might be a dumb question, but the only thing that I can run from this repo (without rust installed) is seemingly rustup-init.sh, which seems to download a pre-compiled binary from the internet. How do I test without rust installed?

@kinnison
Copy link
Contributor Author

You need to cargo run -- --no-modify-path -y which will build and install a developer version of rustup, but if that's too much risk/faff for you then no worries, I'll just listen out for if things break in the future :D

@tbarusseau
Copy link

I managed to compile and run it, and it seems to work just fine now. Thanks 😄

@kinnison kinnison merged commit 4b9c9bb into rust-lang:master Nov 23, 2020
@kinnison kinnison deleted the instant-fix-1984 branch November 23, 2020 22:45
@cyril23
Copy link

cyril23 commented Nov 25, 2020

You need to cargo run -- --no-modify-path -y which will build and install a developer version of rustup, [...]

doesn't really work for me:

apt-get install cargo pkg-config libssl-dev
git clone https://github.com/rust-lang/rustup.git && cd rustup/ && cargo run -- --no-modify-path -y
....
  Compiling hyper v0.13.8
   Compiling serde_urlencoded v0.6.1
   Compiling ed25519-dalek v1.0.1
   Compiling toml v0.5.7
   Compiling rs_tracing v1.0.1
   Compiling rsa v0.3.0
   Compiling pgp v0.7.1
   Compiling hyper-tls v0.4.3
   Compiling reqwest v0.10.8
   Compiling download v0.6.7 (/root/rustup/download)
error: attributes are not yet allowed on `if` expressions
   --> src/cli/self_update.rs:304:5
    |
304 |     #[cfg(windows)]
    |     ^^^^^^^^^^^^^^^

error: aborting due to previous error

error: could not compile `rustup`.
warning: build failed, waiting for other jobs to finish...
error: build failed
  • Debian 10, fresh installed

@kinnison
Copy link
Contributor Author

@cyril23 Rustup is not meant to be built with older compilers. We tend to follow current stable compiler.

@cyril23
Copy link

cyril23 commented Nov 25, 2020

@cyril23 Rustup is not meant to be built with older compilers. We tend to follow current stable compiler.

so my Debian packages are too old, I understand.

By the way I had similar errors like #1984 (comment) when trying to install rust the recommended way via curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh after a fresh Debian 10 installation (uname -r shows 4.19.0-12-amd64) in Windows Virtual Box: rust_error.log

@kinnison
Copy link
Contributor Author

@cyril23 I think that virtualbox must have a broken sense of time. I hope that the new release will mitigate that when we can make a release.

@cyril23
Copy link

cyril23 commented Nov 25, 2020

@cyril23 I think that virtualbox must have a broken sense of time.

Yes, you're right. It's actually the fault of Virtual Box. I've just tried it out again in VMware Player with a fresh Debian 10, and it installed without any problems. rust_vmware.log

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.

Panic because supplied instant is later than self during download.

3 participants