hundreds-father-404
05/13/2020, 4:20 PM.py
files. They knew they were doing things wrong and I was trying to help them fix it (interaction with custom plugin), so seemed fine with the change. But, it does point out we didn’t do a deprecation cycle.witty-crayon-22786
05/13/2020, 4:20 PMhundreds-father-404
05/13/2020, 4:21 PMwitty-crayon-22786
05/13/2020, 4:23 PMwitty-crayon-22786
05/13/2020, 4:24 PMhundreds-father-404
05/13/2020, 4:25 PMhundreds-father-404
05/13/2020, 4:28 PMwere they creating a python target in a plugin?Yes, a target that subclasses
PythonTarget
but represents configuration for an ETL job. They did it this way for invalidation to work how they wanted, whereby only changes to the directory triggered a rebuild because the whole directory was included in the plugin’s targets `sources`; iirc, they don’t want transitive deps to cause invalidation.
The change I suggested is to move those sources into a direct dependency, and use dependees
or --changed-include-dependees=direct
to get that same invalidation.
cc @wonderful-iron-54019wonderful-iron-54019
05/13/2020, 4:29 PMwonderful-iron-54019
05/13/2020, 4:30 PMwonderful-iron-54019
05/13/2020, 4:30 PMwitty-crayon-22786
05/13/2020, 4:31 PMresources
or files
target instead… ?https://pantsbuild.slack.com/archives/C18RRR4JK/p1589387290108200?thread_ts=1589386806.106800&cid=C18RRR4JKwonderful-iron-54019
05/13/2020, 4:32 PMwonderful-iron-54019
05/13/2020, 4:32 PMwitty-crayon-22786
05/13/2020, 4:34 PMhundreds-father-404
05/13/2020, 5:07 PM.py
file change to be a deprecation: https://github.com/pantsbuild/pants/pull/9752
JP, we’ll cherry-pick into 1.27.x.