Skip to content

Commit

Permalink
Improve PEX repository error for local projects. (#1184)
Browse files Browse the repository at this point in the history
Make it clear local projects can't be resolved from PEX repositories in
general. Previously you might take the error to mean the particular
local project was not resolvable from the particular PEX repository.
  • Loading branch information
jsirois authored Jan 21, 2021
1 parent 552b926 commit c1394bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pex/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1413,9 +1413,8 @@ def resolve_from_pex(
for direct_requirement in direct_requirements:
if isinstance(direct_requirement, LocalProjectRequirement):
raise Untranslatable(
"Cannot resolve local project {path} from the PEX repository {pex}.".format(
path=direct_requirement.path, pex=pex
)
"Cannot resolve local projects from PEX repositories. Asked to resolve {path} "
"from {pex}.".format(path=direct_requirement.path, pex=pex)
)
direct_requirements_by_key[
direct_requirement.requirement.key
Expand Down

0 comments on commit c1394bb

Please sign in to comment.