Fix docker build failing

This commit is contained in:
R Midhun Suresh 2024-08-16 16:00:44 +05:30
parent 2263200561
commit aa85c4f87a
No known key found for this signature in database

View File

@ -205,10 +205,14 @@ function definePlaceholderValue(mode, name, devValue) {
* @see https://stackoverflow.com/a/35778030 * @see https://stackoverflow.com/a/35778030
*/ */
function getLatestGitCommitHash() { function getLatestGitCommitHash() {
return require("child_process") try {
.execSync("git rev-parse --short HEAD") return require("child_process")
.toString() .execSync("git rev-parse --short HEAD")
.trim(); .toString()
.trim();
} catch {
return "could_not_fetch_sha";
}
} }
function createPlaceholderValues(mode) { function createPlaceholderValues(mode) {