8000 fix bazel_integration_test runner to allow non-release URLs · lapointexavier/rules_python@e98bc2d · GitHub
[go: up one dir, main page]

Skip to content

Commit e98bc2d

Browse 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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/bazel_integration_test/test_runner.py

Lines 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