<#19662 `pants tailor --check ::` fails with `Unkn...
# github-notifications
c
#19662 `pants tailor --check ::` fails with `Unknown flag --check on global scope` with new PEX distribution mechanism Issue created by huonw Describe the bug In 2.18.0.dev5 and beyond,
pants 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)
Copy code
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:
Copy code
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 . Nothing leaps out at me. I haven't run a
git bisect
though.
See first comment: it's the switch to PEX distributions pantsbuild/pants