<#18024 Pants 1.30.4 Scrooge plugin broken with th...
# github-notifications
q
#18024 Pants 1.30.4 Scrooge plugin broken with the latest Scrooge (22.12.0) Issue created by rosvit Describe the bug With the recent changes in the Scrooge, released in 22.12.0, Pants 1.x Scrooge support is broken.
Copy code
[scrooge-gen]
                       ==== stdout ====
                       
                       ==== stderr ====
                       Error: Unknown option --import-path
Reason: In commit [1] the deprecated
--import-path
option has been removed, but Pants' Scrooge plugin still uses this option [2]. I guess it could be enough just to replace the usage of this option in 1.30.x branch with just
-i
or
--include-path
. Even though I understand that Pants 1.x is unsupported now, I think it make sense to release a patch update to address this issue to allow legacy projects continue using Pants 1.30.x. Pants version 1.30.4 OS macOS, but issue is not dependent on OS. Additional info [1] twitter/scrooge@c9767cd [2] https://github.com/pantsbuild/pants/blob/1.30.x/contrib/scrooge/src/python/pants/contrib/scrooge/tasks/scrooge_gen.py#L188 pantsbuild/pants