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
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Commit 1a1a539

Browse filesBrowse files
authored
Merge pull request bazel-contrib#39 from hwright/master
Add a better error message when deps not found
2 parents 49a434b + 7861c73 commit 1a1a539
Copy full SHA for 1a1a539

File tree

2 files changed

+4
-2
lines changed
Filter options

2 files changed

+4
-2
lines changed

‎rules_python/piptool.py

Copy file name to clipboardExpand all lines: rules_python/piptool.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ def pip_install():
138138
all_requirements = _requirements.values()
139139
140140
def requirement(name):
141-
name = name.replace("-", "_").lower()
142-
return _requirements[name]
141+
name_key = name.replace("-", "_").lower()
142+
if name_key not in _requirements:
143+
fail("Could not find pip-provided dependency: '%s'" % name)
144+
return _requirements[name_key]
143145
""".format(input=args.input,
144146
whl_libraries='\n'.join(map(whl_library, whls)) if whls else "pass",
145147
mappings=','.join([

‎tools/piptool.par

Copy file name to clipboard
96 Bytes
Binary file not shown.

0 commit comments

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