Skip to content

Commit

Permalink
allow pinned browsers script to overwrite bazel file directly
Browse files Browse the repository at this point in the history
git ftw
  • Loading branch information
titusfortner committed Dec 5, 2023
1 parent f2abe55 commit 609891b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/pinned_browsers.py
Expand Up @@ -6,6 +6,7 @@
import urllib3

from packaging.version import parse
from pathlib import Path

# Find the current stable versions of each browser we
# support and the sha256 of these. That's useful for
Expand Down Expand Up @@ -274,4 +275,8 @@ def pin_browsers():
content = content + chrome()
content = content + chromedriver()

print(content)
current_script_dir = Path(os.path.realpath(__file__)).parent
target_file_path = current_script_dir.parent / 'common/repositories.bzl'

with open(target_file_path, 'w') as file:
file.write(content)

0 comments on commit 609891b

Please sign in to comment.