Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(build): remove the download link from openssl.org and add a fal… #13423

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion build/openresty/openssl/openssl_repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ load("@kong_bindings//:variables.bzl", "KONG_VAR")
def openssl_repositories():
version = KONG_VAR["OPENSSL"]

openssl_verion_uri = version
if version.startswith("3"):
# for 3.x only use the first two digits
openssl_verion_uri = ".".join(version.split(".")[:2])

maybe(
http_archive,
name = "openssl",
build_file = "//build/openresty/openssl:BUILD.bazel",
sha256 = KONG_VAR["OPENSSL_SHA256"],
strip_prefix = "openssl-" + version,
urls = [
"https://www.openssl.org/source/openssl-" + version + ".tar.gz",
"https://github.com/openssl/openssl/releases/download/openssl-" + version + "/openssl-" + version + ".tar.gz",
"https://openssl.org/source/old/3.1/openssl-" + version + ".tar.gz",
],
)
Loading