Set gix-transport/http-client-insecure-credentials while testing

This is needed because some tests send HTTP auth headers, and by default
gix will refuse to do that over an insecure channel.
This commit is contained in:
Eric Huss 2025-04-11 08:42:09 -07:00
parent 609d608df7
commit 2253485048
2 changed files with 5 additions and 0 deletions

1
Cargo.lock generated
View File

@ -327,6 +327,7 @@ dependencies = [
"git2",
"git2-curl",
"gix",
"gix-transport",
"glob",
"hex",
"hmac",

View File

@ -48,6 +48,7 @@ filetime = "0.2.25"
flate2 = { version = "1.0.35", default-features = false, features = ["zlib"] }
git2 = "0.20.0"
git2-curl = "0.21.0"
# When updating this, also see if `gix-transport` further down needs updating or some auth-related tests will fail.
gix = { version = "0.71.0", default-features = false, features = ["blocking-http-transport-curl", "progress-tree", "parallel", "dirwalk"] }
glob = "0.3.2"
handlebars = { version = "6.3.1", features = ["dir_source"] }
@ -252,6 +253,9 @@ features = [
annotate-snippets = { workspace = true, features = ["testing-colors"] }
cargo-test-support.workspace = true
gix = { workspace = true, features = ["revision"] }
# When building Cargo for tests, a safety-measure in `gix` needs to be disabled
# to allow sending credentials over HTTP connections.
gix-transport = { version = "0.46.0", features = ["http-client-insecure-credentials"] }
same-file.workspace = true
snapbox.workspace = true