Closed benjyw closed 2 months ago
This is going to take another day or so, as I figure out one thing that the tests uncovered, namely that we still rely on the legacy parser to detect unconsumed cmd-line flags. Will have a little think on how best to address this, probably in another PR.
No worries. Is there a chance we could keep the 2.23 releases moving forward by either:
(My thinking here is that we're a bit stuck in a spiral of long releases because delays lead to bigger releases lead to more things that can go wrong lead to delays 😄 )
I think delaying the switch to 2.24 makes the most sense. Cherry-picking back to 2.23 is fine if the issues can be resolved quickly.
I don't want to delay, but we can cherry-pick.
Okay, I'll merge #21383 to start that rolling
OK, tracking arg consumption is implemented here: https://github.com/pantsbuild/pants/pull/21410
This is ready for another look, thanks!
@huonw thanks for expressing your discomfort, which I acknowledge. I can wait to 2.24.x if you are more comfortable with that (and it sounds like @cognifloyd prefers that too). For now I will merge (once tests pass) without the auto-cherrypick, so we have a chance to discuss further.
But still compare against the legacy parser so we can warn about discrepancies.