Upgrading from 2.14 to 2.15: Apparently, `FmtRequ...
# plugins
p
Upgrading from 2.14 to 2.15: Apparently,
FmtRequest
and
LintRequest
now require a subsystem. I even reviewed some of the PRs that changed this, but I did not see how it would impact my in-repo Fmt/Lint plugins. I have some Fmt rules that use
PexFromTargetsRequest
to run a script defined in a python resolve on (part of) the code in that same resolve. So, the pants plugin is a fairly light weight wrapper around in-repo code. Is there something like a null subsystem I can use? Defining a subsystem with requirements, a lockfile, and options, doesn't make much sense, at first blush, when using
PexFromTsrgets
1
w
Oh, weird, I didn't think that this upgrade changed that - but 🤷 What about just an empty subsystem? This kinda thing roughly?
Copy code
class Foo(Subsystem):
  name: String
  options_scope: String
  help = ""
p
I'll try something like that.