Do plugins support call-by-name in the latest rele...
# plugins
s
Do plugins support call-by-name in the latest release? I recall seeing a note about wanting to deprecate call-by-type soon.
w
Are you referring to your own in-repo plugins?
s
Sorry I should have clarified, yes
w
Then yes, if you migrate to call-by-name it should work. You can test it out by taking an innocuous single-line change and seeing if it still works after migrating
Or yolo, of course
f
@silly-queen-7197 : I assume your plugins work with only one Pants version at a time?
w
Wouldn't it? As an in-repo plugin?
f
I assume so. I’m just confirming that aspect.
👍 1
Motivation for my question: There was some refactoring of the API as part of the call-by-name migration. Plugins which have to deal with multiple Pants versions from same code base might have to adjust to different APIs. But probably not in this case.
s
I actually haven’t written any plugins yet 😛 (well nothing non-trivial and that was a while ago). I’m just trying to figure out whats expected to work since I recall running into really cryptic errors or just not seeing expected changes