bazelbuild / bazelisk

A user-friendly launcher for Bazel.
Apache License 2.0
2.07k stars 316 forks source link

Bazelisk unable to set variable "-Dcom.sun.net.ssl.checkRevocation=false" #623

Open Ryan-Boustany opened 2 hours ago

Ryan-Boustany commented 2 hours ago

For context I am trying to follow this older Updating to a new version of libphonenumber instructions here I need this for my project: https://github.com/Ryan-Boustany/intl-tel-input/blob/v17.0.21/.github/CONTRIBUTING.md.

I am trying to bypass ssl verification whilst running the build.

Command I need to run: bazelisk build :all

Error I am facing: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

My question is either how can i get around this issue or how can I set that variable to allow me to bypass the ssl verification checks.

Ryan-Boustany commented 2 hours ago

Here is a more detailed output of the error when running the command

WARNING: Download from https://github.com/bazelbuild/rules_java/releases/download/5.4.1/rules_java-5.4.1.tar.gz failed: class javax.net.ssl.SSLHandshakeException PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
ERROR: An error occurred during the fetch of repository 'rules_java':
   Traceback (most recent call last):
        File "/private/var/tmp/_bazel_boustry/287eb8ada5cb1ef597fcf96f64786701/external/bazel_tools/tools/build_defs/repo/http.bzl", line 125, column 45, in _http_archive_impl
                download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/bazelbuild/rules_java/releases/download/5.4.1/rules_java-5.4.1.tar.gz] to /private/var/tmp/_bazel_boustry/287eb8ada5cb1ef597fcf96f64786701/external/rules_java/temp47235204782365388/rules_java-5.4.1.tar.gz: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target