Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e98bc2d

Browse filesBrowse files
committed
fix bazel_integration_test runner to allow non-release URLs
was broken by cd5416e in such a way that it was testing the prior release and not the local code from HEAD
1 parent 9b765cb commit e98bc2d
Copy full SHA for e98bc2d

File tree

1 file changed

+3
-1
lines changed
Filter options

1 file changed

+3
-1
lines changed

‎tools/bazel_integration_test/test_runner.py

Copy file name to clipboardExpand all lines: tools/bazel_integration_test/test_runner.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ def modify_WORKSPACE(wksp, distro_path):
2424
content = wksp_file.read()
2525
# Replace the url for rules_python with our locally built one
2626
content = re.sub(
27-
r'url = "https://github.com/bazelbuild/rules_python/releases/download/[^"]+"',
27+
r'url = "https://github.com/bazelbuild/rules_python/[^"]+"',
2828
'url = "file://%s"' % r.Rlocation(distro_path),
2929
content)
30+
# comment out sha256 and strip_prefix if present
3031
content = re.sub(r'sha256 = "', '#\1', content)
32+
content = re.sub(r'strip_prefix = "', '#\1', content)
3133
with open(wksp, 'w') as wksp_file:
3234
wksp_file.write(content)
3335

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.