Join Slack
Powered by
I mean I execute ./pants binary my/fs/path so how ...
# general
s
stocky-account-81383
10/04/2018, 2:48 PM
I mean I execute ./pants binary my/fs/path so how I can find inside execute method that path my/fs/path? Somewhere in context?
e
enough-analyst-54434
10/04/2018, 2:57 PM
Yes, in the Context. For the targets explicitly listed on the command line (my/fs/path) in your example:
https://github.com/pantsbuild/pants/blob/bfa45c8f46f285879f0b60207ed892cf0d89eeb5/src/python/pants/goal/context.py#L119-L129
enough-analyst-54434
10/04/2018, 2:58 PM
For all targets implied (recursive dependencies):
https://github.com/pantsbuild/pants/blob/bfa45c8f46f285879f0b60207ed892cf0d89eeb5/src/python/pants/goal/context.py#L313-L328
4
Views
Open in Slack
Previous
Next