Skip to content

Commit

Permalink
update to gix 0.47.0, fix issue caused by new Time struct (#219)
Browse files Browse the repository at this point in the history
* update to gix 0.47.0, fix issue caused by new Time struct

* version bump for next release
  • Loading branch information
CraZySacX authored Jun 25, 2023
1 parent 8e0f393 commit c51c8d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions vergen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
name = "vergen"
readme = "README.md"
repository = "https://github.com/rustyhorde/vergen"
version = "8.2.1"
version = "8.2.2"

[package.metadata.cargo-all-features]
denylist = [
Expand Down Expand Up @@ -41,7 +41,7 @@ si = ["sysinfo"]
[dependencies]
anyhow = "1.0.70"
git2-rs = { version = "0.17.1", package = "git2", optional = true, default-features = false }
gix = { version = "0.46.0", optional = true, default-features = false }
gix = { version = "0.47.0", optional = true, default-features = false }
rustc_version = { version = "0.4.0", optional = true }
sysinfo = { version = "0.29.0", optional = true, default-features = false }
time = { version = "0.3.20", features = [
Expand All @@ -53,7 +53,7 @@ time = { version = "0.3.20", features = [
rustversion = "1.0.12"

[dev-dependencies]
gix = { version = "0.46.0", default-features = false, features = [
gix = { version = "0.47.0", default-features = false, features = [
"blocking-network-client",
] }
lazy_static = "1.4.0"
Expand Down
4 changes: 1 addition & 3 deletions vergen/src/feature/git/gix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,7 @@ impl EmitBuilder {
),
Err(std::env::VarError::NotPresent) => (
false,
OffsetDateTime::from_unix_timestamp(
commit.time()?.seconds_since_unix_epoch.into(),
)?,
OffsetDateTime::from_unix_timestamp(commit.time()?.seconds.try_into()?)?,
),
Err(e) => return Err(e.into()),
};
Expand Down

0 comments on commit c51c8d3

Please sign in to comment.