cargo install gluon_language-server would run into such error:
error: environment variable `GIT_COMMIT` not defined
--> gluon_language-server-0.17.0/src/command/initialize.rs:39:65
|
39 | concat!(env!("CARGO_PKG_VERSION"), "-", env!("GIT_COMMIT")).into(),
| ^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
But it compiles if I run cargo build from the source dir.
cargo install gluon_language-serverwould run into such error:But it compiles if I run
cargo buildfrom the source dir.