Skip to content

Commit

Permalink
wip make the call for the global instance lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
codealchemy committed Mar 4, 2019
1 parent 7c7865c commit 3f7c108
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/python/pants/engine/legacy/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __call__(self, *args, **kwargs):
name = kwargs.get('name')
# Append any globally defined tags to the target
kwargs.setdefault('tags', set())
kwargs['tags'].update(target_tag_definitions.tags_for(name))
kwargs['tags'].update(target_tag_definitions().tags_for(name))
if name and self._serializable:
kwargs.setdefault('type_alias', self._type_alias)
obj = self._object_type(**kwargs)
Expand Down
2 changes: 1 addition & 1 deletion src/python/pants/init/engine_initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def setup_legacy_graph_extended(
symbol_table,
build_file_aliases,
build_file_imports_behavior,
TargetTagDefinitions.global_instance()
TargetTagDefinitions.global_instance
)
address_mapper = AddressMapper(parser=parser,
build_ignore_patterns=build_ignore_patterns,
Expand Down

0 comments on commit 3f7c108

Please sign in to comment.