Do not use git desribe in the release
XVilka opened this issue · comments
Anton Kochkov commented
When I just run cargo install record-query
it still tries to access the git. Shouldn't do that for the release version, I suppose.
error: git describe failed with status 128: fatal: 不是一个 git 仓库(或者直至挂载点 / 的任何父目录)
--> /home/akochkov/.cargo/registry/src/github.com-1ecc6299db9ec823/record-query-1.0.1/src/lib.rs:29:31
|
29 | pub const GIT_VERSION: &str = git_version::git_version!();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: aborting due to previous error
error: could not compile `record-query`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `record-query v1.0.1`, intermediate artifacts can be found at `/tmp/cargo-installSqg6GK`
Caused by:
build failed
David Flemström commented
Fixed in 1.0.2!