fix repr for alias_target

It has no command, so you cannot try printing it or it explodes with

IndexError: list index out of range
This commit is contained in:
Eli Schwartz 2021-08-31 19:24:16 -04:00
parent 0b63dff3ba
commit 10cfc321f8
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
1 changed files with 4 additions and 0 deletions

View File

@ -2528,6 +2528,10 @@ class AliasTarget(RunTarget):
def __init__(self, name, dependencies, subdir, subproject):
super().__init__(name, [], dependencies, subdir, subproject)
def __repr__(self):
repr_str = "<{0} {1}>"
return repr_str.format(self.__class__.__name__, self.get_id())
class Jar(BuildTarget):
known_kwargs = known_jar_kwargs