diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-01-16 15:49:58 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-01-17 01:44:56 -0500 |
| commit | d56a65a8c4609a740eee43fd7073c2485c87c2c6 (patch) | |
| tree | 9936fd3bcf55f9426d8a43425c6e092a95658022 /src/main.zig | |
| parent | e646becd04c37fbaaa654f6419dd9f5e85d9f210 (diff) | |
| download | zig-d56a65a8c4609a740eee43fd7073c2485c87c2c6.tar.gz zig-d56a65a8c4609a740eee43fd7073c2485c87c2c6.zip | |
std.http.Client: default to lazy root cert scanning
After this change, the system will be inspected for root certificates
only upon the first https request that actually occurs. This makes the
compiler no longer do SSL certificate scanning when running `zig build`
if no network requests are made.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig index 2e97cc0214..9455bc328a 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4098,7 +4098,6 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi if (!build_options.omit_pkg_fetching_code) { var http_client: std.http.Client = .{ .allocator = gpa }; defer http_client.deinit(); - try http_client.rescanRootCertificates(); // Here we provide an import to the build runner that allows using reflection to find // all of the dependencies. Without this, there would be no way to use `@import` to |
