Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[engine] model snapshots in validation, make root rules a dict instead of a set #4125

8 changes: 6 additions & 2 deletions src/python/pants/engine/isolated_process.py
Expand Up @@ -199,7 +199,9 @@ def ptree(func):

def create_snapshot_intrinsics(project_tree):
def ptree(func):
return functools.partial(func, project_tree, snapshot_directory(project_tree))
partial = functools.partial(func, project_tree, snapshot_directory(project_tree))
partial.__name__ = '{}_intrinsic'.format(func.__name__)
return partial
return [
(Snapshot, Files, ptree(create_snapshot_archive)),
]
Expand All @@ -213,7 +215,9 @@ def create_snapshot_tasks(project_tree):
uncacheable singleton.
"""
def ptree(func):
return functools.partial(func, project_tree, snapshot_directory(project_tree))
partial = functools.partial(func, project_tree, snapshot_directory(project_tree))
partial.__name__ = '{}_task'.format(func.__name__)
return partial
return [
(Snapshot, [Select(Files)], ptree(create_snapshot_archive)),
]