forked from jmug/stoatchat
fix: fallback if vergen cannot generate data
This commit is contained in:
@@ -12,5 +12,5 @@ fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
vergen(Config::default()).unwrap();
|
vergen(Config::default()).ok();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,11 +119,12 @@ pub async fn root() -> Result<Json<RevoltConfig>> {
|
|||||||
app: APP_URL.to_string(),
|
app: APP_URL.to_string(),
|
||||||
vapid: VAPID_PUBLIC_KEY.to_string(),
|
vapid: VAPID_PUBLIC_KEY.to_string(),
|
||||||
build: BuildInformation {
|
build: BuildInformation {
|
||||||
commit_sha: env!("VERGEN_GIT_SHA").to_string(),
|
commit_sha: env!("VERGEN_GIT_SHA", "<failed to generate>").to_string(),
|
||||||
commit_timestamp: env!("VERGEN_GIT_COMMIT_TIMESTAMP").to_string(),
|
commit_timestamp: env!("VERGEN_GIT_COMMIT_TIMESTAMP", "<failed to generate>")
|
||||||
semver: env!("VERGEN_GIT_SEMVER").to_string(),
|
.to_string(),
|
||||||
origin_url: env!("GIT_ORIGIN_URL", "<missing>").to_string(),
|
semver: env!("VERGEN_GIT_SEMVER", "<failed to generate>").to_string(),
|
||||||
timestamp: env!("VERGEN_BUILD_TIMESTAMP").to_string(),
|
origin_url: env!("GIT_ORIGIN_URL", "<failed to generate>").to_string(),
|
||||||
|
timestamp: env!("VERGEN_BUILD_TIMESTAMP", "<failed to generate>").to_string(),
|
||||||
},
|
},
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user