diff --git a/Cargo.lock b/Cargo.lock index 11e2398e09..deea16daeb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4004,7 +4004,7 @@ dependencies = [ [[package]] name = "nym-vesting-contract" -version = "1.2.0-pre.0" +version = "1.2.0-pre.1" dependencies = [ "cosmwasm-std", "cw-storage-plus", diff --git a/common/bin-common/build.rs b/common/bin-common/build.rs index b909ce42c4..bd26c886d2 100644 --- a/common/bin-common/build.rs +++ b/common/bin-common/build.rs @@ -4,5 +4,10 @@ use vergen::{vergen, Config}; fn main() { - vergen(Config::default()).expect("failed to extract build metadata") + let mut config = Config::default(); + if std::env::var("DOCS_RS").is_ok() { + // If we don't have access to git information, such as in a docs.rs build, don't error + *config.git_mut().skip_if_error_mut() = true; + } + vergen(config).expect("failed to extract build metadata"); } diff --git a/contracts/vesting/Cargo.toml b/contracts/vesting/Cargo.toml index 3ed2e186c9..4c72da5a4e 100644 --- a/contracts/vesting/Cargo.toml +++ b/contracts/vesting/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nym-vesting-contract" -version = "1.2.0-pre.0" +version = "1.2.0-pre.1" description = "Nym vesting contract" edition = { workspace = true } authors = { workspace = true } diff --git a/contracts/vesting/build.rs b/contracts/vesting/build.rs index 3567a950a4..dfffaafd59 100644 --- a/contracts/vesting/build.rs +++ b/contracts/vesting/build.rs @@ -9,5 +9,5 @@ fn main() { // If we don't have access to git information, such as in a docs.rs build, don't error *config.git_mut().skip_if_error_mut() = true; } - vergen(Config::default()).expect("failed to extract build metadata") + vergen(config).expect("failed to extract build metadata") }