Revert "Use version from git-describe to better identify builds"
This commit is contained in:
parent
b3cc22af6c
commit
a9b7368847
@ -3,10 +3,7 @@ use ructe::Ructe;
|
||||
use vergen::EmitBuilder;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
EmitBuilder::builder()
|
||||
.git_sha(true)
|
||||
.git_describe(true, true, None)
|
||||
.emit()?;
|
||||
EmitBuilder::builder().git_sha(true).emit()?;
|
||||
|
||||
let mut ructe = Ructe::from_env()?;
|
||||
let mut statics = ructe.statics()?;
|
||||
|
@ -5,8 +5,7 @@ pub struct VersionInfo<'a> {
|
||||
|
||||
pub(crate) const VERSION_INFO: VersionInfo = VersionInfo {
|
||||
commit: env!("VERGEN_GIT_SHA"),
|
||||
version: env!("VERGEN_GIT_DESCRIBE"),
|
||||
// version: env!("CARGO_PKG_VERSION"),
|
||||
version: env!("CARGO_PKG_VERSION"),
|
||||
};
|
||||
|
||||
lazy_static! {
|
||||
|
@ -35,7 +35,7 @@
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
<small>HoC @version_info.version - <a href="https://github.com/vbrandl/hoc/commit/@version_info.commit">@version_info.commit</a></small>
|
||||
<small>HoC v@version_info.version - <a href="https://github.com/vbrandl/hoc/commit/@version_info.commit">@version_info.commit</a></small>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
Loading…
Reference in New Issue
Block a user