Skip to content

Commit deb2c19

Browse files
committed
Switch to vergen-gitcl
1 parent e31f798 commit deb2c19

File tree

5 files changed

+40
-44
lines changed

5 files changed

+40
-44
lines changed

Cargo.lock

+33-37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ unicode-segmentation = "1.10.1"
426426
unsize = "1.1.0"
427427
url = "2.2.2"
428428
urlencoding = "2.1.2"
429-
vergen = { version = "9.0.4", features = ["cargo"] }
430-
vergen-git2 = { version = "1.0.5", features = ["cargo"] }
429+
vergen = { git = "https://github.com/bgw/vergen.git", branch = "bgw/no-optional-locks", features = ["cargo"] }
430+
vergen-gitcl = { git = "https://github.com/bgw/vergen.git", branch = "bgw/no-optional-locks", features = ["cargo"] }
431431
webbrowser = "0.8.7"
432432

433433
[patch.crates-io]

crates/napi/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ anyhow = { workspace = true }
142142
napi-build = "2"
143143
serde = { workspace = true }
144144
serde_json = { workspace = true }
145-
vergen-git2 = { workspace = true }
145+
vergen-gitcl = { workspace = true }
146146

147147
# build-dependencies for the native, non-wasm32 build
148148
[target.'cfg(not(target_arch = "wasm32"))'.build-dependencies]

crates/napi/build.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fn main() -> anyhow::Result<()> {
99
// Generates, stores build-time information as static values.
1010
// There are some places relying on correct values for this (i.e telemetry),
1111
// So failing build if this fails.
12-
let cargo = vergen_git2::CargoBuilder::default()
12+
let cargo = vergen_gitcl::CargoBuilder::default()
1313
.target_triple(true)
1414
.build()?;
1515
// We use the git dirty state to disable persistent caching (persistent caching relies on a
@@ -27,15 +27,15 @@ fn main() -> anyhow::Result<()> {
2727
// top-level crate has changed (which would've triggered our rebuild), then the resulting binary
2828
// must be equivalent to a clean build anyways. Therefore, persistent caching using the HEAD
2929
// commit hash as a version is okay.
30-
let git = vergen_git2::Git2Builder::default()
30+
let git = vergen_gitcl::GitclBuilder::default()
3131
.dirty(/* include_untracked */ true)
3232
.describe(
3333
/* tags */ true,
3434
/* dirty */ !is_ci, // suppress the dirty suffix in CI
3535
/* matches */ Some("v[0-9]*"), // find the last version tag
3636
)
3737
.build()?;
38-
vergen_git2::Emitter::default()
38+
vergen_gitcl::Emitter::default()
3939
.add_instructions(&cargo)?
4040
.add_instructions(&git)?
4141
.fail_on_error()

turbopack/crates/turbo-tasks-backend/src/database/db_versioning.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77

88
use anyhow::Result;
99

10-
/// Information gathered by `vergen_git2` in the top-level binary crate and passed down. This
10+
/// Information gathered by `vergen_gitcl` in the top-level binary crate and passed down. This
1111
/// information must be computed in the top-level crate for cargo incremental compilation to work
1212
/// correctly.
1313
///

0 commit comments

Comments
 (0)