vercel-community / rust

🦀 Rust runtime for ▲ Vercel Serverless Functions
https://rust-runtime.vercel.app
MIT License
845 stars 49 forks source link

Deploying directly into Vercel from a Git repo hangs the deployment process. #147

Closed pjmlp closed 6 months ago

pjmlp commented 7 months ago

When doing a build deployment clean from a Git repo, while using version vercel-rust@4.0.6, the shell hangs waiting for input after installing the Rust toolchain.

[16:54:14.138] info: profile set to 'default'
[16:54:14.138] info: default host triple is x86_64-unknown-linux-gnu
[16:54:14.139] info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
[16:54:14.187] info: latest update on 2024-02-08, rust version 1.76.0 (07dca489a 2024-02-04)
[16:54:14.188] info: downloading component 'cargo'
[16:54:14.234] info: downloading component 'clippy'
[16:54:14.247] info: downloading component 'rust-docs'
[16:54:14.317] info: downloading component 'rust-std'
[16:54:14.425] info: downloading component 'rustc'
[16:54:14.729] info: downloading component 'rustfmt'
[16:54:14.742] info: installing component 'cargo'
[16:54:15.532] info: installing component 'clippy'
[16:54:15.797] info: installing component 'rust-docs'
[16:54:19.096] info: installing component 'rust-std'
[16:54:21.536] info: installing component 'rustc'
[16:54:26.884] info: installing component 'rustfmt'
[16:54:27.175] info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'
[16:54:27.176] 
[16:54:27.185]   stable-x86_64-unknown-linux-gnu installed - rustc 1.76.0 (07dca489a 2024-02-04)
[16:54:27.185] 
[16:54:27.185] 
[16:54:27.186] Rust is installed now. Great!
[16:54:27.186] 
[16:54:27.186] To get started you may need to restart your current shell.
[16:54:27.186] This would reload your PATH environment variable to include
[16:54:27.186] Cargo's bin directory ($HOME/.cargo/bin).
[16:54:27.186] 
[16:54:27.186] To configure your current shell, run:
[16:54:27.187] source "$HOME/.cargo/env"
ecklf commented 6 months ago

Seems to be related to https://github.com/vercel-community/rust/issues/150. Go to your projects settings and change Node.js to version 18. We already reported this issue upstream.

pjmlp commented 6 months ago

I just tried this, and can confirm it works, thanks.