fix: correct git_describe in /health (#383)

* fix: add missing Version component in OpenAPI definition

* fix: allow tag / dirty in git describe
release-0.0 v0.0.1-rc.3
Meng Zhang 2023-08-31 09:06:36 +08:00 committed by GitHub
parent 41046f8324
commit c44a9c7195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,10 @@ use vergen::EmitBuilder;
fn main() -> Result<(), Box<dyn Error>> {
// touch
EmitBuilder::builder().all_build().all_git().emit()?;
EmitBuilder::builder()
.all_build()
.all_git()
.git_describe(true, true, None)
.emit()?;
Ok(())
}

View File

@ -42,6 +42,7 @@ OpenAPI documentation for [tabby](https://github.com/TabbyML/tabby), a self-host
completions::Segments,
completions::Choice,
health::HealthState,
health::Version,
))
)]
struct ApiDoc;