Skip to content

Commit 2253485

Browse files
committed
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.
1 parent 609d608 commit 2253485

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ filetime = "0.2.25"
4848
flate2 = { version = "1.0.35", default-features = false, features = ["zlib"] }
4949
git2 = "0.20.0"
5050
git2-curl = "0.21.0"
51+
# When updating this, also see if `gix-transport` further down needs updating or some auth-related tests will fail.
5152
gix = { version = "0.71.0", default-features = false, features = ["blocking-http-transport-curl", "progress-tree", "parallel", "dirwalk"] }
5253
glob = "0.3.2"
5354
handlebars = { version = "6.3.1", features = ["dir_source"] }
@@ -252,6 +253,9 @@ features = [
252253
annotate-snippets = { workspace = true, features = ["testing-colors"] }
253254
cargo-test-support.workspace = true
254255
gix = { workspace = true, features = ["revision"] }
256+
# When building Cargo for tests, a safety-measure in `gix` needs to be disabled
257+
# to allow sending credentials over HTTP connections.
258+
gix-transport = { version = "0.46.0", features = ["http-client-insecure-credentials"] }
255259
same-file.workspace = true
256260
snapbox.workspace = true
257261

0 commit comments

Comments
 (0)