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

fix bazel_integration_test runner to allow non-release URLs #556

Merged
merged 1 commit into from
Oct 23, 2021
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
4 changes: 3 additions & 1 deletion tools/bazel_integration_test/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ def modify_WORKSPACE(wksp, distro_path):
content = wksp_file.read()
# Replace the url for rules_python with our locally built one
content = re.sub(
r'url = "https://github.com/bazelbuild/rules_python/releases/download/[^"]+"',
r'url = "https://github.com/bazelbuild/rules_python/[^"]+"',
'url = "file://%s"' % r.Rlocation(distro_path),
content)
# comment out sha256 and strip_prefix if present
content = re.sub(r'sha256 = "', '#\1', content)
content = re.sub(r'strip_prefix = "', '#\1', content)
with open(wksp, 'w') as wksp_file:
wksp_file.write(content)

Expand Down