Hey y’all, I put together a Plugin upgrade guide f...
# plugins
h
Hey y’all, I put together a Plugin upgrade guide for the 2.0.0rc0 release from last night (not yet announced). https://www.pantsbuild.org/docs/plugin-upgrade-guide We also changed our approach to the changelog, and now differentiate between Plugin API changes vs. User API changes: https://github.com/pantsbuild/pants/blob/master/src/python/pants/notes/2.0.x.rst#200rc0-10112020 Let us know if you have feedback for how to make upgrades smoother with plugins. While we unfortunately can’t yet guarantee API stability, we want to make upgrades as painless as possible.
@calm-ambulance-65371 the first two sections are relevant to you, with
TransitiveTargetsRequest
and specifically using
TransitiveRequestsLite
, because you wrote a codegen plugin. @flat-zoo-31952 the
TransitiveTargetsRequest
part is relevant to you, along with Dependencies-like fields, and possibly
output_path
field @jolly-midnight-72759 I don’t think any of the sections will be relevant for you if you’re using the
repl
plugin hook. If you are doing a new custom goal, though, then
TransitiveTargetsRequest
is relevant.
👍 3
c
Thank you for the heads up!
❤️ 1
f
Yes thanks, I'll check it out soon!
c
I'm not actually using
TransitiveTargetsRequest
directly, but
Get(TransitiveTargets, Addresses(...))
and I'm getting message spam
h
You need to change the
Addresses
to
TransitiveTargetsRequestLite
👍 1
what goes in the constructor is the same
c
that looks to have fixed it, thanks!
👍 1