Skip to content

Commit 9b0dbab

Browse files
committed
[ci] Pinning browsers
1 parent 29acf2d commit 9b0dbab

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

common/repositories.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ js_library(
5050

5151
http_archive(
5252
name = "linux_beta_firefox",
53-
url = "https://ftp.mozilla.org/pub/firefox/releases/135.0b6/linux-x86_64/en-US/firefox-135.0b6.tar.bz2",
53+
url = "https://ftp.mozilla.org/pub/firefox/releases/135.0b6/linux-x86_64/en-US/firefox-135.0b6.tar.xz",
5454
sha256 = "104ae2f77c52f428ca0e037b0167e147d508b822e77543b26530dbef6764a018",
5555
build_file_content = """
5656
load("@aspect_rules_js//js:defs.bzl", "js_library")

scripts/pinned_browsers.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def firefox():
405405

406406
beta_firefox = firefox_versions["LATEST_FIREFOX_RELEASED_DEVEL_VERSION"]
407407
if latest_firefox != beta_firefox:
408-
sha_linux = calculate_hash(firefox_linux_beta(beta_firefox))
408+
sha_linux = calculate_hash(firefox_linux(beta_firefox))
409409
sha_mac = calculate_hash(firefox_mac(beta_firefox))
410410
return content + print_firefox(beta_firefox, "beta_", sha_linux, sha_mac)
411411

@@ -416,10 +416,12 @@ def firefox_version_data():
416416

417417

418418
def firefox_linux(version):
419-
return "https://ftp.mozilla.org/pub/firefox/releases/%s/linux-x86_64/en-US/firefox-%s.tar.bz2" % (version, version)
420-
421-
def firefox_linux_beta(version):
422-
return "https://ftp.mozilla.org/pub/firefox/releases/%s/linux-x86_64/en-US/firefox-%s.tar.xz" % (version, version)
419+
if int(version.split(".")[0]) < 135:
420+
return "https://ftp.mozilla.org/pub/firefox/releases/%s/linux-x86_64/en-US/firefox-%s.tar.bz2" % (
421+
version, version)
422+
else:
423+
return "https://ftp.mozilla.org/pub/firefox/releases/%s/linux-x86_64/en-US/firefox-%s.tar.xz" % (
424+
version, version)
423425

424426

425427
def firefox_mac(version):

0 commit comments

Comments
 (0)