spacemeowx2 / slp-server-rust

Switch-lan-play Server written in Rust
https://github.com/spacemeowx2/switch-lan-play
115 stars 16 forks source link

Custom Build Failed #2

Closed t0g3pii closed 4 years ago

t0g3pii commented 4 years ago

error: failed to run custom build command forslp-server-rust v2.0.0-rust.alpha.3 (/root/slp-server-rust-master)`

Caused by: process didn't exit successfully: /root/slp-server-rust-master/target/release/build/slp-server-rust-4dd1cb61801f6938/build-script-build (exit code: 101) --- stderr thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:1165:5 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace.

warning: build failed, waiting for other jobs to finish... error: build failed`

Happened when Updating from alpha1 to alpha3 and on a Fresh Install.

spacemeowx2 commented 4 years ago

it happend because build.rs cannot run git command. Make sure you have git installed. The GIT_HASH will show when you run --version. It helps when reporting bugs.

Fixed by set a default value of GIT_HASH

t0g3pii commented 4 years ago

(You should write in the ReadMe.md to avoid more Issues from others) Thank you for the info!