Skip to content

Commit 3da45f5

Browse files
committed
fix: resolve loading certificates root certs
1 parent 08740f2 commit 3da45f5

File tree

2 files changed

+52
-99
lines changed

2 files changed

+52
-99
lines changed

Cargo.lock

Lines changed: 33 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hipcheck/Cargo.toml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,14 @@ env_logger = { version = "0.11.6" }
4747
flate2 = "1.0.35"
4848
fs_extra = "1.3.0"
4949
futures = "0.3.31"
50-
gix = { version = "0.70.0", features = [
50+
gix = { version = "0.70.0", default-features = false, features = [
51+
"basic",
52+
"dirwalk",
53+
"worktree-mutation",
5154
"max-control",
5255
# use reqwest/rustls to avoid needing openssl
5356
"blocking-http-transport-reqwest-rust-tls",
54-
"zlib-stock"
57+
"zlib-stock",
5558
] }
5659
# Include with both a `path` and `version` reference.
5760
# Local builds will use the `path` dependency, which may be a newer
@@ -70,7 +73,7 @@ log = "0.4.25"
7073
logos = "0.15.0"
7174
miette = { version = "7.4.0", features = ["fancy"] }
7275
minijinja = "2.7.0"
73-
minijinja-contrib = { version ="2.7.0", features = ["datetime"] }
76+
minijinja-contrib = { version = "2.7.0", features = ["datetime"] }
7477
nom = "7.1.3"
7578
num-traits = "0.2.19"
7679
once_cell = "1.20.3"
@@ -98,7 +101,7 @@ rustls = { version = "0.23.10", default-features = false, features = [
98101
"ring",
99102
] }
100103
rustls-native-certs = "0.8.1"
101-
salsa = { git = "https://github.com/mitre/salsa.git", tag = "hipcheck-v3.11.0"}
104+
salsa = { git = "https://github.com/mitre/salsa.git", tag = "hipcheck-v3.11.0" }
102105
schemars = { version = "0.8.21", default-features = false, features = [
103106
"derive",
104107
"preserve_order",
@@ -141,6 +144,18 @@ hipcheck-common = { version = "0.3.0", path = "../hipcheck-common", features = [
141144
] }
142145
serde_with = "3.12.0"
143146

147+
# This is needed to force reqwest, which is used by gix, to build reqwest with support
148+
# for rustls-tls-native-roots, which is needed to automatically configure system certificates
149+
[dependencies.reqwest]
150+
version = "0.12"
151+
default-features = false
152+
features = [
153+
"blocking",
154+
"http2",
155+
"rustls-tls-native-roots",
156+
"macos-system-configuration",
157+
]
158+
144159
[build-dependencies]
145160

146161
anyhow = "1.0.96"

0 commit comments

Comments
 (0)