cool-easter-32542
08/24/2023, 3:22 AMpants tailor --check :: stops working when run under scie-pants 0.9.0 or greater.
This invocation is likely to be widespread, as it is suggested by docs and examples. It'd be really good to not break (at least, not without deprecation warnings)
Unknown flag --check on global scope
Did you mean --check-only or --tailor-check?
Use `pants help` to get help.
13:19:23.55 [ERROR] Unknown flags --check on global scope
Use --print-stacktrace for more error details and/or -ldebug for more logs.
See <https://www.pantsbuild.org/v2.18/docs/troubleshooting> for common issues.
Consider reaching out for help: <https://www.pantsbuild.org/v2.18/docs/getting-help>
Reproducer:
cd $(mktemp -d)
cat > pants.toml <<EOF
[GLOBAL]
pants_version = "2.18.0.dev5"
backend_packages = ["pants.backend.python"]
EOF
pants tailor --check ::
Changing the version to 2.18.0.dev4 passes (no output).
Pants version
2.18.0.dev5 to 2.18.0a0 at the time of writing
scie-pants 0.9.0, 0.9.3
OS
macOS and Linux
Additional info
• I discovered by a "public repo" test run, e.g. https://github.com/pantsbuild/pants/actions/runs/5957288454/job/16159713022
• Changes between those releases: release_2.18.0.dev4...release_2.18.0.dev5 . git bisect though.